function let(InputInterface $input, OutputInterface $output, DialogHelper $dialogHelper, OptionsConfig $config) { $input->isInteractive()->willReturn(true); $input->getOption('no-code-generation')->willReturn(false); $input->getOption('stop-on-failure')->willReturn(false); $config->isCodeGenerationEnabled()->willReturn(true); $config->isStopOnFailureEnabled()->willReturn(false); $this->beConstructedWith($input, $output, $dialogHelper, $config); }
public function getBootstrapPath() { if ($path = $this->input->getOption('bootstrap')) { return $path; } if ($path = $this->config->getBootstrapPath()) { return $path; } return false; }
public function isFakingEnabled() { return $this->input->getOption('fake') || $this->config->isFakingEnabled(); }