You are here

public function AbstractProcessTest::testThatProcessDoesNotThrowWarningDuringRun 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::testThatProcessDoesNotThrowWarningDuringRun()

File

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

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testThatProcessDoesNotThrowWarningDuringRun() {
  @trigger_error('Test Error', E_USER_NOTICE);
  $process = $this
    ->getProcess(self::$phpBin . " -r 'sleep(3)'");
  $process
    ->run();
  $actualError = error_get_last();
  $this
    ->assertEquals('Test Error', $actualError['message']);
  $this
    ->assertEquals(E_USER_NOTICE, $actualError['type']);
}