/** * test updating a Statistic that already exists * * @expectedException PDOException **/ public function testUpdateInvalidStatistic() { // Create a Statistic with a non null statistic id and watch it fail $statistic = new Statistic(null, $this->VALID_STATISTIC->getStatisticId()); $statistic->update($this->getPDO()); }