public function testPassThrough() { $output = new BufferedOutput(OutputInterface::VERBOSITY_VERY_VERBOSE); $execute = new Execute($output, new ProcessHelper()); $process = $execute->passThrough('php -r "echo 42;"'); $this->assertInstanceOf('Symfony\\Component\\Process\\Process', $process); $this->assertEquals(' RUN php -r "echo 42;"' . PHP_EOL . '42', $output->fetch()); }