Ejemplo n.º 1
0
 /**
  * test updating a Team that already exists
  *
  * @expectedException \PDOException
  **/
 public function testUpdateInvalidTeam()
 {
     // create a Team with a non null team id and watch it fail
     $team = new Team($this->sport->getSportId(), SprotsTest::INVALID_KEY, $this->VALID_TEAMAPIID, $this->VALID_TEAMCITY, $this->VALID_TEAMNAME);
     $team->insert($this->getPDO());
     $team->update($this->getPDO());
 }