예제 #1
0
 public function testSelectAllError()
 {
     $query = 'DELETE aTable';
     try {
         $this->object->selectAll($query);
         $this->fail('method selectAll accept only SELECT or SHOW queries!');
     } catch (Phigrate_Exception_AdapterQuery $e) {
         $msg = 'Query for selectAll() is not one of SELECT or SHOW: ' . $query;
         $this->assertEquals($msg, $e->getMessage());
     }
 }