PHPUnit_Util_Printer::write PHP Method

write() public method

public write ( string $buffer )
$buffer string
    public function write($buffer)
    {
        if ($this->out) {
            fwrite($this->out, $buffer);
            if ($this->autoFlush) {
                $this->incrementalFlush();
            }
        } else {
            if (PHP_SAPI != 'cli') {
                $buffer = htmlspecialchars($buffer);
            }
            print $buffer;
            if ($this->autoFlush) {
                $this->incrementalFlush();
            }
        }
    }

Usage Example

Esempio n. 1
0
 protected function printConsole(\PHPUnit_Util_Printer $printer)
 {
     $writer = new \PHP_CodeCoverage_Report_Text(
         $this->settings['low_limit'], $this->settings['high_limit'], $this->settings['show_uncovered'], false
     );
     $printer->write($writer->process(self::$coverage, $this->options['colors']));
 }
All Usage Examples Of PHPUnit_Util_Printer::write