From 18113672c13327fda9814b028cfb65479ae7336a Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Wed, 30 Oct 2013 13:27:00 +0100 Subject: [PATCH] [Process] Renamed flushOutput() and flushErrorOutput() to clearOutput() and clearErrorOutput() --- src/Symfony/Component/Process/Process.php | 4 ++-- src/Symfony/Component/Process/Tests/AbstractProcessTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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()); }