public function test_break_width_imperial() { $this->setExpectedException("Exception", "Could not create an imperial width for this gauge"); $Gauge = new Gauge(); $Gauge->name = "Test"; $Gauge->width_metric = "sdfsadg"; $Gauge->commit(); }
public function testAddGauge() { $Gauge = new Gauge(); $Gauge->name = "Broad"; $Gauge->width_metric = "1600"; $Gauge->commit(); $this->assertFalse(!filter_var($Gauge->id, FILTER_VALIDATE_INT)); return $Gauge->id; }