/** * @param MvcEvent $e */ public function process(MvcEvent $e) { $wizard = $this->resolver->resolve(); if (!$wizard) { return; } $instance = $this->factory->create($wizard); $instance->process(); }
public function testResolverNotMatchWizardRoute() { $route = 'home/foo'; $config = ['wizards' => []]; $routeMatchStub = $this->getRouteMatch(); $routeMatchStub->method('getMatchedRouteName')->will($this->returnValue($route)); $requestStub = $this->getRequest(); $routerStub = $this->getRouter(); $routerStub->method('match')->with($requestStub)->will($this->returnValue($routeMatchStub)); $resolver = new WizardResolver($requestStub, $routerStub, $config); $this->assertNull($resolver->resolve()); }