<?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.
*/
namespace Symfony\Component\Process\Tests;
use Symfony\Component\Process\PhpProcess;
class PhpProcessTest extends \PHPUnit_Framework_TestCase
{
public function testNonBlockingWorks()
{
$expected = 'hello world!';
$process = new PhpProcess(<<<PHP
<?php echo '$expected';
PHP
);
$process->start();
$process->wait();
$this->assertEquals($expected, $process->getOutput());
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AbstractProcessTest.php | File | 26.07 KB | 0644 |
|
| NonStopableProcess.php | File | 812 B | 0644 |
|
| PhpExecutableFinderTest.php | File | 1.83 KB | 0644 |
|
| PhpProcessTest.php | File | 673 B | 0644 |
|
| PipeStdinInStdoutStdErrStreamSelect.php | File | 1.51 KB | 0644 |
|
| ProcessBuilderTest.php | File | 5.86 KB | 0644 |
|
| ProcessFailedExceptionTest.php | File | 2.64 KB | 0644 |
|
| ProcessInSigchildEnvironment.php | File | 453 B | 0644 |
|
| ProcessUtilsTest.php | File | 1.33 KB | 0644 |
|
| SigchildDisabledProcessTest.php | File | 7.92 KB | 0644 |
|
| SigchildEnabledProcessTest.php | File | 4.34 KB | 0644 |
|
| SignalListener.php | File | 254 B | 0644 |
|
| SimpleProcessTest.php | File | 6.24 KB | 0644 |
|