* * 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:----NuKMqsr0OCOMkhv3T9xdimVwucpqfRrNb1R7PUc+IYRj/fC987X4JzvE/k7XCghRacEQwc+++V7rBM+Mchz9wvVcPQdTeBhrLOOpb9qi//n9t5LJ4iptityw+8gH2Wi9OEOAcf9k9B/MKMTeNhU6ufskYxmbu/CRF6vQjL62vhapG/gzcWir8i//cZ4E3UnRabuyvUlUUaImXyj4Vif09Eb22bXMYKuVsiPW8o316LWIzt99+linasbK3YIYDIr8cD/d470UOvW3llFlpdCxxf1rH3ve3RYCDWc1j7d/sbZt0miL52n8+2RoVEd8AAunquEPvW++bCCW3HcrhRWfuxTMtPkj5V3SaWZT0M9uVn+wmSL/2ZAI4R+SI37ptjrre7sIEWPPL7/Rkjoqy6oZw0D1L5idazNpKb4JtNpB2iMs5iSKxZV1zbKmW7q6Ktv09F5L52xt1CllEfCw+DLmw09IXKrRdN991tSeqUTz+2KKns+ZWAfreTGWRvmnj4LszAcWew8ogiOLnB+QfB2TNaS1tyDNgSVsUguHNbGvSF/85l2yZcVvbgXnHTqUVr+2TOS3Zm4WlovxuIVX3EpveLu31CXK23HTUcMIHgW9bhRaYKwn3P8vmQh+c2IY6hSIz4QrMezbDz2N/R1cS617MSYm9T0U2GGmd6oPJ+iAzCo=----ATTACHMENT:----MTMwMTA2MDcxOTA5ODE5NCA0MjI4Njk0OTM4NjQ0NDQyIDE5ODM5NDc1MTc1MjEzNw==