From a0732c2db8f850617b5fabe629b01d93dd586fad Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Thu, 24 Nov 2022 22:51:38 +0100 Subject: [PATCH] tests: Replace assertEmpty with assertCount Change-Id: I0002bb228701a3a5184ac7f1e38321bf10b23064 --- .phpcs.xml | 1 - tests/phpunit/Engines/LuaCommon/LuaCommonTest.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.phpcs.xml b/.phpcs.xml index 3dd8888d..c96d6506 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -1,7 +1,6 @@ - diff --git a/tests/phpunit/Engines/LuaCommon/LuaCommonTest.php b/tests/phpunit/Engines/LuaCommon/LuaCommonTest.php index ab147663..8fbcf1c4 100644 --- a/tests/phpunit/Engines/LuaCommon/LuaCommonTest.php +++ b/tests/phpunit/Engines/LuaCommon/LuaCommonTest.php @@ -127,7 +127,7 @@ class LuaCommonTest extends LuaEngineTestBase { ); $leakedGlobals = array_diff( $actualGlobals, self::$allowedGlobals ); - $this->assertEmpty( $leakedGlobals, + $this->assertCount( 0, $leakedGlobals, 'The following globals are leaked: ' . implode( ' ', $leakedGlobals ) ); }