public function AbstractProcessTest::testDisableOutputDisablesTheOutput in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testDisableOutputDisablesTheOutput()
File
- vendor/
symfony/ process/ Tests/ AbstractProcessTest.php, line 1036
Class
- AbstractProcessTest
- @author Robert Schönthal <seroscho@googlemail.com>
Namespace
Symfony\Component\Process\TestsCode
public function testDisableOutputDisablesTheOutput() {
$p = $this
->getProcess(self::$phpBin . ' -r "usleep(500000);"');
$this
->assertFalse($p
->isOutputDisabled());
$p
->disableOutput();
$this
->assertTrue($p
->isOutputDisabled());
$p
->enableOutput();
$this
->assertFalse($p
->isOutputDisabled());
}