/** * @see OutputPrinter::beforeStart */ public function testBeforeStart() { $output = $this->getMock(ConsoleOutput::class, ['writeln']); $output->expects($this->once())->method('writeln')->with('START ::: command'); $process = $this->getMock(ScenarioProcess::class, ['getCommandLine'], [], '', false); $process->expects($this->once())->method('getCommandLine')->willReturn('command'); $event = $this->getMock(ProcessEvent::class, null, [$process]); /** @var OutputInterface $output */ /** @var ProcessEvent $event */ $printer = new OutputPrinter(); $printer->init($output); $printer->beforeStart($event); }