Permalink
Browse files

Fix failing test caused by changes in debug().

  • Loading branch information...
1 parent 7b9acc5 commit 0bb9f3f99ed4b403bdd1b5f27beb62e40ea36476 @markstory markstory committed Oct 21, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/Cake/Test/Case/Error/ExceptionRendererTest.php
@@ -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.