Beispiel #1
0
 /**
  * @dataProvider triggerEventProvider
  */
 public function testTriggerEvent($result)
 {
     $this->event->expects($this->any())->method('trigger')->willReturn($result);
     $payload = $this->getMock('\\StateMachine\\PayloadInterface');
     $state = new State('stateName', [$this->event], [$this->flag]);
     $this->assertEquals($result, $state->triggerEvent('eventName', $payload));
 }