/** * 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()); }