You are here

public function AbstractProcessTest::testGetExitCodeIsNullOnWhenStartingAgain in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testGetExitCodeIsNullOnWhenStartingAgain()
1 call to AbstractProcessTest::testGetExitCodeIsNullOnWhenStartingAgain()
SigchildDisabledProcessTest::testGetExitCodeIsNullOnWhenStartingAgain in vendor/symfony/process/Tests/SigchildDisabledProcessTest.php
@expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.
1 method overrides AbstractProcessTest::testGetExitCodeIsNullOnWhenStartingAgain()
SigchildDisabledProcessTest::testGetExitCodeIsNullOnWhenStartingAgain in vendor/symfony/process/Tests/SigchildDisabledProcessTest.php
@expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.

File

vendor/symfony/process/Tests/AbstractProcessTest.php, line 586

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testGetExitCodeIsNullOnWhenStartingAgain() {
  $process = $this
    ->getProcess(self::$phpBin . ' -r "usleep(200000);"');
  $process
    ->run();
  $this
    ->assertEquals(0, $process
    ->getExitCode());
  $process
    ->start();
  $this
    ->assertNull($process
    ->getExitCode());
  $process
    ->wait();
  $this
    ->assertEquals(0, $process
    ->getExitCode());
}