Browse Source

Merge pull request #16783 from cakephp/5.x-fix-xdebug

skip test if xdebug is loaded
ADmad 3 years ago
parent
commit
9c386ba5cc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/Error/DebuggerTest.php

+ 1 - 0
tests/TestCase/Error/DebuggerTest.php

@@ -371,6 +371,7 @@ TEXT;
      */
     public function testExportVarInvalidDebugInfo(): void
     {
+        $this->skipIf(extension_loaded('xdebug'), 'Throwing exceptions inside __debugInfo breaks with xDebug');
         $result = Debugger::exportVar(new ThrowsDebugInfo());
         $expected = '(unable to export object: from __debugInfo)';
         $this->assertTextEquals($expected, $result);