/** * Manually flush buffered output. */ public function flushBuffer() { $content = $this->format($this->buffer->flush()); if (!$this->is(OutputVerbosity::SILENT)) { fwrite($this->getOutputStream(), $content); } }
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"); }