/** * test deleting a alertLevel that does not exist * * @expectedException PDOException **/ public function testDeleteInvalidAlertLevel() { // create an AlertLevel and try to delete it without actually inserting it $alertLevel = new AlertLevel(null, $this->VALID_alertCode, $this->VALID_alertFrequency, $this->VALID_alertPoint, $this->VALID_alertOperator); $alertLevel->delete($this->getPDO()); }