/** * @expectedException \Thru\ActiveRecord\DatabaseLayer\Exception * @expectedExceptionMessage Active Record Cannot insert into more than one table at a time! */ public function testInsertIntoTwoTablesFails() { $insert = new DatabaseLayer\Insert("test_models"); $insert->setTables(array("tm" => new DatabaseLayer\Table("test_models"), "tmb" => new DatabaseLayer\Table("test_model_bad"))); $insert->execute(); }