public function testDeleteEntry() { $author = new Authors(); $author->name = "Chuck Norris"; $author->save(); $author->delete(); try { $author2 = new Authors(1); $this->fail("Must throw a NoPrimaryKeySqlException"); } catch (NoPrimaryKeySqlException $e) { $this->pass(); } }