/** * test deleting a Unit Of Measure that does not exist * * @expectedException PDOException **/ public function testDeleteInvalidUnitOfMeasure() { // create a Unit Of Measure and try to delete it without actually inserting it $unitOfMeasure = new UnitOfMeasure(null, $this->VALID_unitCode, $this->VALID_quantity); $unitOfMeasure->delete($this->getPDO()); }