* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Process\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Process\PhpProcess; class PhpProcessTest extends TestCase { public function testNonBlockingWorks() { $expected = 'hello world!'; $process = new PhpProcess(<<start(); $process->wait(); $this->assertEquals($expected, $process->getOutput()); } public function testCommandLine() { $process = new PhpProcess(<<<'PHP' getCommandLine(); $process->start(); $this->assertContains($commandLine, $process->getCommandLine(), '::getCommandLine() returns the command line of PHP after start'); $process->wait(); $this->assertContains($commandLine, $process->getCommandLine(), '::getCommandLine() returns the command line of PHP after wait'); $this->assertSame(PHP_VERSION.PHP_SAPI, $process->getOutput()); } } __halt_compiler();----SIGNATURE:----oD0Wzi0F7DNkbb94frLQYG/cvxFE6qQz1UuOx6mtwM5ZWy72VTGekN5UbAxBA310ow+CLQj0yd4ZT1NFRUXHGwojroLRu4P0EZ4GkLZ4lEOhyYhQjUuh5dkAFpx1N7+mPsAY8H+YDB3RtVw6hvr6kSNfh3shkgJvdeMUdcMOfkYoMFMHE8pc9wmXEdtj6q2kFNNdijpkwU+JQRVN13WCuPtbZ7tJze0x6z2VpPQANgokKFkdmFDXDvyeochwES3H2ALC1LLcf6O5ypJm/1/y1kUTMel8CJyhPjvR7siztYahv0qnxZTDCPDpEWn2SaZ7ZtRTEdVJ+OGExMVNgcsu6wvpIIrmpGkccXeHbVMAwPYKdUQU4wgmZOlgDvp/asxLz2UUCrrpgwBvtfWpZi+VklnKy5rXssqSjbR4EMvv9kN/PRgemCwBfFH8BYUzJOSyxE641pOycXnSLhT3UDc3ggIIFjKKj5wyRa8tqt47PdPwM7q0jMvh8mwCIEYNMw8KZ+pa1fjW0DcA3uVRBHn9GcDta6857ANiFZYt5+1A9SpLRrLhhDzBqf6uOMwb/eGjapnFPb6hYY1i53/+jCcYPWaIKvO/7m34PHKVOm0bDYTDVBLxKUbPf9HUB3V2Scj86me/cPT7g/lMkzYssf/5NaSSeKsCLUcfE3tBop8iZ4Q=----ATTACHMENT:----ODk0NTU4MjA2MjkyNzg4NiA2OTk1MzIzMDc0MTg2NTQ2IDgwMDg0MjAzMDg3OTM1MDE=