public function test_it_skips_exception_when_not_in_strict_mode_and_handler_doesnt_exist() { $transition = new Transition(['event' => 'event', 'from' => 'state2', 'to' => 'state3']); $obj = new ObjectFactory('', false); $this->assertEquals('\\EventChangesState2ToState3', $obj->createTransitionClassName($transition)); }
/** * [checkTransitionHandlers description] * @return [type] [description] */ protected function addTransitionHandlers() { foreach ($this->transitions as $transition) { $transition->setHandler($this->factory->createTransitionClassName($transition)); } }