/**
  * @expectedException \InvalidArgumentException
  */
 public function testInvalidPumpState()
 {
     $this->brewControlManager->setPumpState('test');
 }
Exemplo n.º 2
0
 /**
  * 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);
 }