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(); }
/** * {@inheritdoc} */ public function execute(InputInterface $input, OutputInterface $output) { if ($input->getOption('step-through') && $input->isInteractive()) { $this->pauser->activate(); } }