示例#1
0
文件: Output.php 项目: weew/console
 /**
  * Manually flush buffered output.
  */
 public function flushBuffer()
 {
     $content = $this->format($this->buffer->flush());
     if (!$this->is(OutputVerbosity::SILENT)) {
         fwrite($this->getOutputStream(), $content);
     }
 }
示例#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");
 }