diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 9226c12a58fff..a66831ecab1e2 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -408,7 +408,7 @@ public function getIncrementalOutput() * * @return Process */ - public function flushOutput() + public function clearOutput() { $this->stdout = ''; $this->incrementalOutputOffset = 0; @@ -454,7 +454,7 @@ public function getIncrementalErrorOutput() * * @return Process */ - public function flushErrorOutput() + public function clearErrorOutput() { $this->stderr = ''; $this->incrementalErrorOutputOffset = 0; diff --git a/src/Symfony/Component/Process/Tests/AbstractProcessTest.php b/src/Symfony/Component/Process/Tests/AbstractProcessTest.php index 633ab46f1f59a..98767e7f853f1 100644 --- a/src/Symfony/Component/Process/Tests/AbstractProcessTest.php +++ b/src/Symfony/Component/Process/Tests/AbstractProcessTest.php @@ -174,7 +174,7 @@ public function testFlushErrorOutput() $p = new Process(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; }'))); $p->run(); - $p->flushErrorOutput(); + $p->clearErrorOutput(); $this->assertEmpty($p->getErrorOutput()); } @@ -202,7 +202,7 @@ public function testFlushOutput() $p = new Process(sprintf('php -r %s', escapeshellarg('$n=0;while ($n<3) {echo \' foo \';$n++;}'))); $p->run(); - $p->flushOutput(); + $p->clearOutput(); $this->assertEmpty($p->getOutput()); }