Преглед изворни кода

added ability to clear TestConsole

ever.zet пре 14 година
родитељ
комит
9cc3e1bd87
1 измењених фајлова са 5 додато и 0 уклоњено
  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" : '');