class (none) \ PHPUnit_Util_Configuration


Wrapper for the PHPUnit XML configuration file.

Example XML configuration file:

/path/to/files /path/to/MyTest.php /path/to/files/exclude

name name

/path/to/files /path/to/file /path/to/files /path/to/file /path/to/files /path/to/file /path/to/files /path/to/file

Sebastian 22 April 19.78 MyRelativeFile.php MyRelativeDir

.


Method Summary

Name Description
__clone()
__construct($filename)Loads a PHPUnit configuration file.
getBoolean($value, $default)
getFilename()Returns the realpath to the configuration file.
getFilterConfiguration()Returns the configuration for SUT filtering.
getGroupConfiguration()Returns the configuration for groups.
getInstance($filename)Returns a PHPUnit configuration object.
getInteger($value, $default)
getListenerConfiguration()Returns the configuration for listeners.
getLoggingConfiguration()Returns the logging configuration.
getPHPConfiguration()Returns the PHP configuration.
getPHPUnitConfiguration()Returns the PHPUnit configuration.
getSeleniumBrowserConfiguration()Returns the SeleniumTestCase browser configuration.
getTestSuite(DOMElement $testSuiteNode, $testSuiteFilter = null)
getTestSuiteConfiguration($testSuiteFilter = null)Returns the test suite configuration.
handlePHPConfiguration()Handles the PHP configuration.
readFilterDirectories($query)
readFilterFiles($query)
toAbsolutePath($path, $useIncludePath = false)

private final function __clone()


protected function __construct($filename)

Loads a PHPUnit configuration file.

Parameters:
string - $filename

protected function getBoolean($value, $default)

Parameters:
string - $value
boolean - $default
Returns:
boolean

public function getFilename()

Returns the realpath to the configuration file.

Returns:
string

public function getFilterConfiguration()

Returns the configuration for SUT filtering.

Returns:
array

public function getGroupConfiguration()

Returns the configuration for groups.

Returns:
array

public static function getInstance($filename)

Returns a PHPUnit configuration object.

Parameters:
string - $filename
Returns:
PHPUnit_Util_Configuration

protected function getInteger($value, $default)

Parameters:
string - $value
boolean - $default
Returns:
boolean

public function getListenerConfiguration()

Returns the configuration for listeners.

Returns:
array

public function getLoggingConfiguration()

Returns the logging configuration.

Returns:
array

public function getPHPConfiguration()

Returns the PHP configuration.

Returns:
array

public function getPHPUnitConfiguration()

Returns the PHPUnit configuration.

Returns:
array

public function getSeleniumBrowserConfiguration()

Returns the SeleniumTestCase browser configuration.

Returns:
array

protected function getTestSuite(DOMElement $testSuiteNode, $testSuiteFilter = null)

Parameters:
DOMElement - $testSuiteNode
Defaults:
testSuiteFilter = null
Returns:
PHPUnit_Framework_TestSuite

public function getTestSuiteConfiguration($testSuiteFilter = null)

Returns the test suite configuration.

Defaults:
testSuiteFilter = null
Returns:
PHPUnit_Framework_TestSuite

public function handlePHPConfiguration()

Handles the PHP configuration.


protected function readFilterDirectories($query)

Parameters:
string - $query
Returns:
array

protected function readFilterFiles($query)

Parameters:
string - $query
Returns:
array

protected function toAbsolutePath($path, $useIncludePath = false)

Parameters:
string - $path
boolean - $useIncludePath
Defaults:
useIncludePath = false
Returns:
string