You are here

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

@dataProvider provideStartMethods

File

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

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testStartWithACallbackAndDisabledOutput($startMethod, $exception, $exceptionMessage) {
  $p = $this
    ->getProcess(self::$phpBin . ' -r "usleep(500000);"');
  $p
    ->disableOutput();
  $this
    ->setExpectedException($exception, $exceptionMessage);
  $p
    ->{$startMethod}(function () {
  });
}