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:
@@ -650,7 +650,7 @@ class MiscellaneousTest extends BaseTestCase
|
||||
|
||||
public function testGetInvertedColorWithIncorrectLength()
|
||||
{
|
||||
$this->setExpectedException(IncorrectColorHexLengthException::class);
|
||||
$this->expectException(IncorrectColorHexLengthException::class);
|
||||
|
||||
Miscellaneous::getInvertedColor(null);
|
||||
Miscellaneous::getInvertedColor('');
|
||||
@@ -664,7 +664,7 @@ class MiscellaneousTest extends BaseTestCase
|
||||
|
||||
public function testGetInvertedColorWithInvalidValue()
|
||||
{
|
||||
$this->setExpectedException(InvalidColorHexValueException::class);
|
||||
$this->expectException(InvalidColorHexValueException::class);
|
||||
|
||||
Miscellaneous::getInvertedColor('0011zz');
|
||||
Miscellaneous::getInvertedColor('001#zz');
|
||||
|
||||
Reference in New Issue
Block a user