public function PhpProcessTest::testNonBlockingWorks in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/Tests/PhpProcessTest.php \Symfony\Component\Process\Tests\PhpProcessTest::testNonBlockingWorks()
File
- vendor/
symfony/ process/ Tests/ PhpProcessTest.php, line 19
Class
Namespace
Symfony\Component\Process\TestsCode
public function testNonBlockingWorks() {
$expected = 'hello world!';
$process = new PhpProcess(<<<PHP
<?php echo '{<span class="php-variable">$expected</span>}';
PHP
);
$process
->start();
$process
->wait();
$this
->assertEquals($expected, $process
->getOutput());
}