<?php/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/namespaceSymfony\Component\Process\Tests;
useSymfony\Component\Process\PhpProcess;
class PhpProcessTestextends \PHPUnit_Framework_TestCase {
public functiontestNonBlockingWorks() {
$expected = 'hello world!';
$process = newPhpProcess(<<<PHP
<?php echo '{<span class="php-variable">$expected</span>}';
PHP
);
$process
->start();
$process
->wait();
$this
->assertEquals($expected, $process
->getOutput());
}
}