Esempio 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();
 }
Esempio n. 2
0
 /**
  * @expectedException \Wizard\Exception\RuntimeException
  */
 public function testCreateInvalidWizard()
 {
     $wizardFactory = new WizardFactory([]);
     $wizardFactory->create('invalid');
 }