Exemple #1
0
 public function testSetAndGetOptions()
 {
     $wizard = new Wizard();
     $this->assertInstanceOf('Wizard\\WizardOptions', $wizard->getOptions());
     $options = $this->getMock('Wizard\\WizardOptions');
     $wizard->setOptions($options);
     $this->assertInstanceOf('Wizard\\WizardOptions', $wizard->getOptions());
 }
Exemple #2
0
 /**
  * @return HttpResponse
  */
 protected function doCancel()
 {
     $options = $this->wizard->getOptions();
     $cancelUrl = $options->getCancelUrl();
     return $this->redirect($cancelUrl);
 }