Skip to content

Commit

Permalink
Fixing failing test for Router. Debugger test fails on windows due to…
Browse files Browse the repository at this point in the history
… different directory separator.
  • Loading branch information
majna committed Sep 27, 2011
1 parent 33030a4 commit 8d6fc84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Cake/Test/Case/Routing/RouterTest.php
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Utility/DebuggerTest.php
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 8d6fc84

Please sign in to comment.