function it_does_not_activate_the_pauser_if_input_is_not_interactive(InputInterface $input, OutputInterface $output, Pauser $pauser) { $input->getOption('step-through')->willReturn(true); $input->isInteractive()->willReturn(false); $this->execute($input, $output); $pauser->activate()->shouldNotHaveBeenCalled(); }
public function pauseAfterStep(AfterStepTested $event) { if (in_array($event->getTestResult()->getResultCode(), array(TestResult::PENDING, TestResult::SKIPPED))) { return; } $this->pauser->pause($event->getStep()->getText()); }
/** * {@inheritdoc} */ public function execute(InputInterface $input, OutputInterface $output) { if ($input->getOption('step-through') && $input->isInteractive()) { $this->pauser->activate(); } }