public function testAcceptOnlyStateAndTransition()
 {
     $this->setExpectedException(Statemachine\Machine\Exception\AttachInstanceMismatch::class);
     $this->_machine->attach([new stdClass()]);
 }
Ejemplo n.º 2
0
 public function can(Machine $machine)
 {
     return in_array($machine->getCurrentState(), $this->getFrom());
 }