diff --git a/tests/Module/ModuleManagerTest.php b/tests/Module/ModuleManagerTest.php index a37f0043e..c652d5218 100644 --- a/tests/Module/ModuleManagerTest.php +++ b/tests/Module/ModuleManagerTest.php @@ -37,7 +37,7 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase protected function setUp() : void { - $this->app = new class() extends ApplicationAbstract { + $this->app = new class() extends ApplicationAbstract { protected string $appName = 'Api'; }; diff --git a/tests/Utils/ArrayUtilsTest.php b/tests/Utils/ArrayUtilsTest.php index 61e5e54fb..c0ce0c8cf 100644 --- a/tests/Utils/ArrayUtilsTest.php +++ b/tests/Utils/ArrayUtilsTest.php @@ -84,7 +84,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase 2 => '2a', ]; - self::assertEquals(null, ArrayUtils::getArray('a/zzz/1', $expected)); + self::assertNull(ArrayUtils::getArray('a/zzz/1', $expected)); } /** diff --git a/tests/Utils/StringUtilsTest.php b/tests/Utils/StringUtilsTest.php index 38ee52f92..dd2694173 100644 --- a/tests/Utils/StringUtilsTest.php +++ b/tests/Utils/StringUtilsTest.php @@ -173,7 +173,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase */ public function testInvalidStringify() : void { - self::assertEquals(null, StringUtils::stringify(new class() {})); + self::assertNull(StringUtils::stringify(new class() {})); } /**