You are here

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

File

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

Class

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

Namespace

Symfony\Component\Process\Tests

Code

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());
}