From c82693b920127ec92d893e1a79e7728fa3787a0e Mon Sep 17 00:00:00 2001 From: Koji Tanaka Date: Sun, 8 Jan 2023 20:07:43 +0900 Subject: [PATCH] test: Fixed DebuggerTest Some tests relied on output format settings in other tests. --- lib/Cake/Test/Case/Utility/DebuggerTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/Test/Case/Utility/DebuggerTest.php b/lib/Cake/Test/Case/Utility/DebuggerTest.php index 983eaedc7..4e6eba8eb 100644 --- a/lib/Cake/Test/Case/Utility/DebuggerTest.php +++ b/lib/Cake/Test/Case/Utility/DebuggerTest.php @@ -165,6 +165,7 @@ class DebuggerTest extends CakeTestCase { $this->_restoreError = true; ob_start(); + Debugger::output('js'); $a = array(); $b = $a['']; $result = ob_get_clean(); @@ -186,6 +187,7 @@ class DebuggerTest extends CakeTestCase { 'traceLine' => '{:reference} - {:path}, line {:line}' )); + Debugger::output('js'); $result = Debugger::trace(); $this->assertMatchesRegularExpression('/' . preg_quote('txmt://open?url=file://', '/') . '(\/|[A-Z]:\\\\)' . '/', $result);