示例#1
0
 public function testDeleteAllConditionsBind()
 {
     UnitTest::deleteAll("boolean_value = :bool", array(':bool' => '1'));
     // make sure Y record is gone
     try {
         $test = UnitTest::find(3);
         $this->fail();
     } catch (Mad_Model_Exception_RecordNotFound $e) {
         $msg = 'The record for id=3 was not found';
         $this->assertEquals($msg, $e->getMessage());
     }
     // count the records
     $this->assertEquals('3', UnitTest::count());
 }