You are here

protected function PHPUnit_Util_Configuration::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Util/Configuration.php \PHPUnit_Util_Configuration::__construct()

Loads a PHPUnit configuration file.

Parameters

string $filename:

File

vendor/phpunit/phpunit/src/Util/Configuration.php, line 155

Class

PHPUnit_Util_Configuration
Wrapper for the PHPUnit XML configuration file.

Code

protected function __construct($filename) {
  $this->filename = $filename;
  $this->document = PHPUnit_Util_XML::loadFile($filename, false, true, true);
  $this->xpath = new DOMXPath($this->document);
}