Browse Source

added ability to clear TestConsole

ever.zet 14 years ago
parent
commit
9cc3e1bd87
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tests/Symfony/Tests/Component/Console/Output/OutputTest.php

+ 5 - 0
tests/Symfony/Tests/Component/Console/Output/OutputTest.php

@@ -98,6 +98,11 @@ class TestOutput extends Output
 {
     public $output = '';
 
+    public function clear()
+    {
+        $this->output = '';
+    }
+
     public function doWrite($message, $newline)
     {
         $this->output .= $message.($newline ? "\n" : '');