示例#1
0
 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);
 }
示例#2
0
 public function getBootstrapPath()
 {
     if ($path = $this->input->getOption('bootstrap')) {
         return $path;
     }
     if ($path = $this->config->getBootstrapPath()) {
         return $path;
     }
     return false;
 }
示例#3
0
 public function isFakingEnabled()
 {
     return $this->input->getOption('fake') || $this->config->isFakingEnabled();
 }