diff --git a/lib/Cake/Test/Case/Utility/DebuggerTest.php b/lib/Cake/Test/Case/Utility/DebuggerTest.php index 6e700e157..a14fd8110 100644 --- a/lib/Cake/Test/Case/Utility/DebuggerTest.php +++ b/lib/Cake/Test/Case/Utility/DebuggerTest.php @@ -642,6 +642,10 @@ TEXT; * @return void */ public function testExportVarRecursion() { + $this->skipIf( + version_compare(PHP_VERSION, '8.1.0', '>='), + 'PHP 8.1+, $GLOBALS no longer has $GLOBALS as an element.' + ); $output = Debugger::exportVar($GLOBALS); $this->assertStringContainsString("'GLOBALS' => [recursion]", $output); }