public function AbstractProcessTest::testGetOutputWhileDisabled in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testGetOutputWhileDisabled()
@dataProvider provideOutputFetchingMethods
File
- vendor/
symfony/ process/ Tests/ AbstractProcessTest.php, line 1119
Class
- AbstractProcessTest
- @author Robert Schönthal <seroscho@googlemail.com>
Namespace
Symfony\Component\Process\TestsCode
public function testGetOutputWhileDisabled($fetchMethod) {
$p = $this
->getProcess(self::$phpBin . ' -r "usleep(500000);"');
$p
->disableOutput();
$p
->start();
$this
->setExpectedException('Symfony\\Component\\Process\\Exception\\LogicException', 'Output has been disabled.');
$p
->{$fetchMethod}();
}