You are here

public function AbstractProcessTest::testSuccessfulMustRunHasCorrectExitCode in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testSuccessfulMustRunHasCorrectExitCode()
1 call to AbstractProcessTest::testSuccessfulMustRunHasCorrectExitCode()
SigchildDisabledProcessTest::testSuccessfulMustRunHasCorrectExitCode 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::testSuccessfulMustRunHasCorrectExitCode()
SigchildDisabledProcessTest::testSuccessfulMustRunHasCorrectExitCode 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 533

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testSuccessfulMustRunHasCorrectExitCode() {
  $process = $this
    ->getProcess('echo foo')
    ->mustRun();
  $this
    ->assertEquals(0, $process
    ->getExitCode());
}