diff --git a/lib/Cake/Test/Case/Routing/RouterTest.php b/lib/Cake/Test/Case/Routing/RouterTest.php index 59fe3e7fd12..92931ce1cdd 100644 --- a/lib/Cake/Test/Case/Routing/RouterTest.php +++ b/lib/Cake/Test/Case/Routing/RouterTest.php @@ -2329,6 +2329,7 @@ public function testReverseWithExtension() { 'named' => array(), 'ext' => 'json', )); + $request->query = array(); $result = Router::reverse($request); $expected = '/posts/view/1.json'; $this->assertEquals($expected, $result); diff --git a/lib/Cake/Test/Case/Utility/DebuggerTest.php b/lib/Cake/Test/Case/Utility/DebuggerTest.php index ccbf484f658..228b5caab15 100644 --- a/lib/Cake/Test/Case/Utility/DebuggerTest.php +++ b/lib/Cake/Test/Case/Utility/DebuggerTest.php @@ -264,7 +264,7 @@ public function testAddFormatCallback() { ob_start(); $foo .= ''; $result = ob_get_clean(); - $this->assertEquals('Notice: I eated an error CORE/Cake/Test/Case/Utility/DebuggerTest.php', $result); + $this->assertEquals('Notice: I eated an error ' . 'CORE' . DS . ltrim(__FILE__, CAKE_CORE_INCLUDE_PATH), $result); } /**