/** * @expectedException \Exception * @expectedExceptionMessage Cannot delete. Primary key column [id] is not set. */ public function testDeleteWithoutPK() { $person = new Person(); $person->delete(); }