public function test_break_type() { $this->setExpectedException("Exception", "Locomotive type ID cannot be empty"); $LocoClass = new LocoClass(); $LocoClass->name = "Test class"; $LocoClass->introduced = "2015"; $LocoClass->manufacturer_id = 1; $LocoClass->wheel_arrangement_id = 1; $LocoClass->commit(); }