From 986b7d3eaa6917a840c97c263ea5d214becacf4c Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 15 Oct 2011 15:38:45 -0400 Subject: [PATCH] Updating other debugger tests. --- lib/Cake/Test/Case/Utility/DebuggerTest.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/Cake/Test/Case/Utility/DebuggerTest.php b/lib/Cake/Test/Case/Utility/DebuggerTest.php index e0c925195..1455621d2 100644 --- a/lib/Cake/Test/Case/Utility/DebuggerTest.php +++ b/lib/Cake/Test/Case/Utility/DebuggerTest.php @@ -347,7 +347,7 @@ TEXT; Debugger::log('cool'); $result = file_get_contents(LOGS . 'debug.log'); $this->assertPattern('/DebuggerTest\:\:testLog/i', $result); - $this->assertPattern('/"cool"/', $result); + $this->assertPattern("/'cool'/", $result); unlink(TMP . 'logs' . DS . 'debug.log'); @@ -356,8 +356,8 @@ TEXT; $this->assertPattern('/DebuggerTest\:\:testLog/i', $result); $this->assertPattern('/\[main\]/', $result); $this->assertPattern('/array/', $result); - $this->assertPattern('/"whatever",/', $result); - $this->assertPattern('/"here"/', $result); + $this->assertPattern("/'whatever',/", $result); + $this->assertPattern("/'here'/", $result); } /** @@ -381,7 +381,18 @@ TEXT; ob_start(); Debugger::dump($var); $result = ob_get_clean(); - $expected = "
array(\n\t'People' => array()\n)
"; + $expected = <<array( + 'People' => array( + (int) 0 => array( + ), + (int) 1 => array( + ) + ) +) +TEXT; + $result = str_replace(array("\r\n", "\n"), "", $result); + $expected = str_replace(array("\r\n", "\n"), "", $expected); $this->assertEquals($expected, $result); }