diff options
Diffstat (limited to 'tests/phpunit/unit/includes/libs/DebugInfo/DebugInfoTraitTest.php')
-rw-r--r-- | tests/phpunit/unit/includes/libs/DebugInfo/DebugInfoTraitTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/unit/includes/libs/DebugInfo/DebugInfoTraitTest.php b/tests/phpunit/unit/includes/libs/DebugInfo/DebugInfoTraitTest.php index 6ef12a212d42..04e8b5e37bd2 100644 --- a/tests/phpunit/unit/includes/libs/DebugInfo/DebugInfoTraitTest.php +++ b/tests/phpunit/unit/includes/libs/DebugInfo/DebugInfoTraitTest.php @@ -10,7 +10,7 @@ class DebugInfoTraitTest extends \PHPUnit\Framework\TestCase { public function setUp(): void { if ( extension_loaded( 'xdebug' ) ) { if ( version_compare( phpversion( 'xdebug' ), '3.0.0', '>=' ) ) { - if ( strpos( ini_get( 'xdebug.mode' ), 'develop' ) !== false ) { + if ( str_contains( ini_get( 'xdebug.mode' ), 'develop' ) ) { $this->markTestSkipped( 'Can\'t run this test with xdebug.mode=develop. ' . 'Use xdebug.mode=coverage to do test coverage without overloading var_dump.' ); } |