/** * test updating a TeamStatistic that already exists * * @expectedException \PDOException **/ public function testUpdateInvalidTeamStatistic() { // create a friend with a non null friendId and watch it fail $teamStatistic = new TeamStatistic(SprotsTest::INVALID_KEY, SprotsTest::INVALID_KEY, SprotsTest::INVALID_KEY, SprotsTest::INVALID_KEY, SprotsTest::INVALID_KEY); $teamStatistic->insert($this->getPDO()); $teamStatistic->update($this->getPDO()); }