mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
test: Skip DebuggerTest::testExportVarRecursion() in PHP 8.1+.
PHP 8.1+, $GLOBALS no longer has $GLOBALS as an element.
This commit is contained in:
parent
ce3e0c35e5
commit
9115ec765f
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue