/**
  * test updating a PlayerStatistic that already exists
  *
  * @expectedException PDOException
  **/
 public function testUpdateInvalidPlayerStatistic()
 {
     // Create a PlayerStatistic with a non null player statistic id and watch it fail
     $playerStatistic = new PlayerStatistic(null, $this->VALID_PLAYERSTATISTIC->getPlayerStatisticId());
     $playerStatistic->update($this->getPDO());
 }
 /**
  * test updating a PlayerStatistic that already exists
  *
  * @expectedException \PDOException
  **/
 public function testUpdateInvalidPlayerStatistic()
 {
     // create a friend with a non null friendId and watch it fail
     $playerStatistic = new PlayerStatistic(SprotsTest::INVALID_KEY, SprotsTest::INVALID_KEY, SprotsTest::INVALID_KEY, SprotsTest::INVALID_KEY, SprotsTest::INVALID_KEY);
     $playerStatistic->insert($this->getPDO());
     $playerStatistic->update($this->getPDO());
 }