Beispiel #1
0
 /**
  * Manually flush buffered output.
  */
 public function flushBuffer()
 {
     $content = $this->format($this->buffer->flush());
     if (!$this->is(OutputVerbosity::SILENT)) {
         fwrite($this->getOutputStream(), $content);
     }
 }
Beispiel #2
0
 function it_writes_line_indented(IOutputBuffer $buffer)
 {
     $this->setEnableBuffering(true);
     $buffer->write("  first line \n   second line\n")->shouldBeCalled();
     $this->writeLineIndented("first line \n second line");
 }