You are here

public function PhpProcessTest::testNonBlockingWorks in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/process/Tests/PhpProcessTest.php \Symfony\Component\Process\Tests\PhpProcessTest::testNonBlockingWorks()

File

vendor/symfony/process/Tests/PhpProcessTest.php, line 19

Class

PhpProcessTest

Namespace

Symfony\Component\Process\Tests

Code

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());
}