You are here

protected function PHPUnit_TextUI_TestRunner::write in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/TextUI/TestRunner.php \PHPUnit_TextUI_TestRunner::write()

@since Method available since Release 3.1.0

Parameters

string $buffer:

2 calls to PHPUnit_TextUI_TestRunner::write()
PHPUnit_TextUI_TestRunner::runFailed in vendor/phpunit/phpunit/src/TextUI/TestRunner.php
Override to define how to handle a failed loading of a test suite.
PHPUnit_TextUI_TestRunner::showExtensionNotLoadedWarning in vendor/phpunit/phpunit/src/TextUI/TestRunner.php
@since Method available since Release 4.7.3

File

vendor/phpunit/phpunit/src/TextUI/TestRunner.php, line 563

Class

PHPUnit_TextUI_TestRunner
A TestRunner for the Command Line Interface (CLI) PHP SAPI Module.

Code

protected function write($buffer) {
  if (PHP_SAPI != 'cli') {
    $buffer = htmlspecialchars($buffer);
  }
  if ($this->printer !== null) {
    $this->printer
      ->write($buffer);
  }
  else {
    print $buffer;
  }
}