예제 #1
0
 /**
  * @param $event
  * @param array $args
  */
 public function fire($event, $args = [])
 {
     $this->machine->fire($event, $args);
 }
예제 #2
0
 function it_should_fire_events(Machine $machine)
 {
     $machine->fire('event', [])->shouldBeCalled();
     $this->setMachine($machine);
     $this->fire('event');
 }
예제 #3
0
 /**
  * @When /^An event (.*) is fired$/
  */
 public function anEventIsFired($event)
 {
     $this->fsm->fire($event, []);
 }