public function AbstractProcessTest::testStartIsNonBlocking

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/AbstractProcessTest.php, line 215

Class

AbstractProcessTest
@author Robert Schönthal <seroscho@googlemail.com>

Namespace

Symfony\Component\Process\Tests

Code

public function testStartIsNonBlocking() {
  $process = $this
    ->getProcess('php -r "sleep(4);"');
  $start = microtime(true);
  $process
    ->start();
  $end = microtime(true);
  $this
    ->assertLessThan(1, $end - $start);
}