Ejemplo n.º 1
0
 /**
  * @param  MvcEvent $e
  */
 public function process(MvcEvent $e)
 {
     $wizard = $this->resolver->resolve();
     if (!$wizard) {
         return;
     }
     $instance = $this->factory->create($wizard);
     $instance->process();
 }
Ejemplo n.º 2
0
 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());
 }