/** * @expectedException \InvalidArgumentException */ public function testInvalidPumpState() { $this->brewControlManager->setPumpState('test'); }
/** * Visual test: * - PUMP led should be inactive * - PUMP led should become active * - PUMP led should become inactive */ public function testPump() { $this->brewControlManager->setPumpState(Pump::STATE_ON); sleep(5); $this->brewControlManager->setPumpState(Pump::STATE_OFF); }