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()); }
/** * @return HttpResponse */ protected function doCancel() { $options = $this->wizard->getOptions(); $cancelUrl = $options->getCancelUrl(); return $this->redirect($cancelUrl); }