mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Tests > fix "Call to undefined method setExpectedException()" bug > make compatible with PHPUnit 8.0 (and PHP 7.2+)
This commit is contained in:
@@ -571,7 +571,7 @@ class RegexTest extends BaseTestCase
|
||||
*/
|
||||
public function testGetValidColorHexValueUsingEmptyValue($emptyValue)
|
||||
{
|
||||
$this->setExpectedException(IncorrectColorHexLengthException::class);
|
||||
$this->expectException(IncorrectColorHexLengthException::class);
|
||||
Regex::getValidColorHexValue($emptyValue);
|
||||
}
|
||||
|
||||
@@ -590,7 +590,7 @@ class RegexTest extends BaseTestCase
|
||||
*/
|
||||
public function testGetValidColorHexValueUsingIncorrectValue($incorrectColor)
|
||||
{
|
||||
$this->setExpectedException(IncorrectColorHexLengthException::class);
|
||||
$this->expectException(IncorrectColorHexLengthException::class);
|
||||
Regex::getValidColorHexValue($incorrectColor);
|
||||
}
|
||||
|
||||
@@ -609,7 +609,7 @@ class RegexTest extends BaseTestCase
|
||||
*/
|
||||
public function testGetValidColorHexValueUsingInvalidValue($invalidColor)
|
||||
{
|
||||
$this->setExpectedException(InvalidColorHexValueException::class);
|
||||
$this->expectException(InvalidColorHexValueException::class);
|
||||
Regex::getValidColorHexValue($invalidColor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user