Skip to content

Commit

Permalink
Fix failing test caused by changes in debug().
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 21, 2011
1 parent 7b9acc5 commit 0bb9f3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Cake/Test/Case/Error/ExceptionRendererTest.php
Expand Up @@ -658,9 +658,9 @@ public function testPDOException() {
$ExceptionRenderer->render();
$result = ob_get_clean();

$this->assertPattern('/<h2>Database Error<\/h2>/', $result);
$this->assertPattern('/There was an error in the SQL query/', $result);
$this->assertPattern('/SELECT \* from poo_query < 5 and :seven/', $result);
$this->assertPattern('/"seven" => 7/', $result);
$this->assertContains('<h2>Database Error</h2>', $result);
$this->assertContains('There was an error in the SQL query', $result);
$this->assertContains('SELECT * from poo_query < 5 and :seven', $result);
$this->assertContains("'seven' => (int) 7", $result);
}
}

0 comments on commit 0bb9f3f

Please sign in to comment.