コード例 #1
0
ファイル: AdapterTest.php プロジェクト: azema/phigrate
 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());
     }
 }