public function testRun() { $helper = new ProcessHelper(); $helper->setHelperSet(new HelperSet([new DebugFormatterHelper()])); $execute = new Execute(new NullOutput(), $helper); $process = $execute->run('php -r "echo 42;"'); $this->assertInstanceOf('Symfony\\Component\\Process\\Process', $process); $this->assertTrue($process->isSuccessful()); }