diff --git a/lib/Cake/Test/Case/Model/ModelReadTest.php b/lib/Cake/Test/Case/Model/ModelReadTest.php index e8e34f859..d21c6c5b5 100644 --- a/lib/Cake/Test/Case/Model/ModelReadTest.php +++ b/lib/Cake/Test/Case/Model/ModelReadTest.php @@ -335,6 +335,7 @@ class ModelReadTest extends BaseModelTest { /** * testParameterMismatch method * + * @expectedException PDOException * @return void */ public function testParameterMismatch() { @@ -347,7 +348,6 @@ class ModelReadTest extends BaseModelTest { $params = array('Y'); $result = $Article->query($query, $params); - $this->assertEmpty($result); } /**