コード例 #1
0
ファイル: SportTest.php プロジェクト: chrispaul3625/sprots
 /**
  * test updating a sport that already exists
  *
  * @expectedException PDOException
  **/
 public function testUpdateInvalidSport()
 {
     // create a sport with a non null sport id and watch it fail
     $sport = new Sport(null, $this->VALID_SPORTLEAGUE, $this->VALID_SPORTNAME);
     $sport->update($this->getPDO());
 }