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