示例#1
0
文件: basics.php 项目: AF83/morm
 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();
     }
 }