public function AbstractProcessTest::testFlushOutput in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testFlushOutput()
File
- vendor/
symfony/ process/ Tests/ AbstractProcessTest.php, line 399
Class
- AbstractProcessTest
- @author Robert Schönthal <seroscho@googlemail.com>
Namespace
Symfony\Component\Process\TestsCode
public function testFlushOutput() {
$p = $this
->getProcess(sprintf('%s -r %s', self::$phpBin, escapeshellarg('$n=0;while ($n<3) {echo \' foo \';$n++;}')));
$p
->run();
$p
->clearOutput();
$this
->assertEmpty($p
->getOutput());
}