You are here

public function AbstractProcessTest::testExitCodeText 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::testExitCodeText()
1 call to AbstractProcessTest::testExitCodeText()
SimpleProcessTest::testExitCodeText in vendor/symfony/process/Tests/SimpleProcessTest.php
3 methods override AbstractProcessTest::testExitCodeText()
SigchildDisabledProcessTest::testExitCodeText 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.
SigchildEnabledProcessTest::testExitCodeText in vendor/symfony/process/Tests/SigchildEnabledProcessTest.php
SimpleProcessTest::testExitCodeText in vendor/symfony/process/Tests/SimpleProcessTest.php

File

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

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testExitCodeText() {
  $process = $this
    ->getProcess('');
  $r = new \ReflectionObject($process);
  $p = $r
    ->getProperty('exitcode');
  $p
    ->setAccessible(true);
  $p
    ->setValue($process, 2);
  $this
    ->assertEquals('Misuse of shell builtins', $process
    ->getExitCodeText());
}