Пример #1
0
 /**
  * testVeryStrangeUseCase method
  *
  * @expectedException PDOException
  * @return void
  */
 public function testVeryStrangeUseCase()
 {
     $this->loadFixtures('Boat', 'User', 'Tag', 'boatsTag');
     $Boat = new Boat();
     $query = 'SELECT * FROM ? WHERE ? = ? AND ? = ?';
     $param = array($this->db->fullTableName('boats'), $this->db->fullTableName('boats') . '.user_id', '3', $this->db->fullTableName('boats') . '.published', 'Y');
     $Boat->query($query, $param);
 }