function it_outputs_the_command_when_run_very_very_verbose(GrumPHP $config, ExternalCommand $externalCommandLocator, IOInterface $io) { $io->isVeryVerbose()->willReturn(true); $command = '/usr/bin/grumphp'; $io->write(PHP_EOL . 'Command: ' . ProcessUtils::escapeArgument($command), true)->shouldBeCalled(); $arguments = new ProcessArgumentsCollection([$command]); $process = $this->buildProcess($arguments); }
/** * @param Process $process */ private function logProcessInVerboseMode(Process $process) { if ($this->io->isVeryVerbose()) { $this->io->write(PHP_EOL . 'Command: ' . $process->getCommandLine(), true); } }