diff --git a/lib/Cake/Test/Case/Error/ExceptionRendererTest.php b/lib/Cake/Test/Case/Error/ExceptionRendererTest.php
index c45a07b56..b2d3ea65f 100644
--- a/lib/Cake/Test/Case/Error/ExceptionRendererTest.php
+++ b/lib/Cake/Test/Case/Error/ExceptionRendererTest.php
@@ -658,9 +658,9 @@ class ExceptionRendererTest extends CakeTestCase {
$ExceptionRenderer->render();
$result = ob_get_clean();
- $this->assertPattern('/
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('Database Error
', $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);
}
}