public function PHPUnit_TextUI_ResultPrinter::__construct

Constructor.

@since Method available since Release 3.0.0

Parameters

mixed $out:

boolean $verbose:

boolean $colors:

boolean $debug:

Throws

PHPUnit_Framework_Exception

Overrides PHPUnit_Util_Printer::__construct

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/TextUI/ResultPrinter.php, line 124

Class

PHPUnit_TextUI_ResultPrinter
Prints the result of a TextUI TestRunner run.

Code

public function __construct($out = NULL, $verbose = FALSE, $colors = FALSE, $debug = FALSE) {
  parent::__construct($out);
  if (is_bool($verbose)) {
    $this->verbose = $verbose;
  }
  else {
    throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'boolean');
  }
  if (is_bool($colors)) {
    $this->colors = $colors;
  }
  else {
    throw PHPUnit_Util_InvalidArgumentHelper::factory(3, 'boolean');
  }
  if (is_bool($debug)) {
    $this->debug = $debug;
  }
  else {
    throw PHPUnit_Util_InvalidArgumentHelper::factory(4, 'boolean');
  }
}