PHP Class PHPUnit_Util_Configuration, phpunit

Example XML configuration file: /path/to/files /path/to/MyTest.php /path/to/files/exclude name name name name /path/to/files /path/to/file /path/to/files /path/to/file Sebastian 22 April 19.78 MyRelativeFile.php MyRelativeDir .
Mostra file Open project: sebastianbergmann/phpunit Class Usage Examples

Protected Properties

Property Type Description
$document
$filename
$xpath

Public Methods

Method Description
getFilename ( ) : string Returns the realpath to the configuration file.
getFilterConfiguration ( ) : array Returns the configuration for SUT filtering.
getGroupConfiguration ( ) : array Returns the configuration for groups.
getInstance ( string $filename ) : PHPUnit_Util_Configuration Returns a PHPUnit configuration object.
getListenerConfiguration ( ) : array Returns the configuration for listeners.
getLoggingConfiguration ( ) : array Returns the logging configuration.
getPHPConfiguration ( ) : array Returns the PHP configuration.
getPHPUnitConfiguration ( ) : array Returns the PHPUnit configuration.
getTestSuiteConfiguration ( $testSuiteFilter = null ) : PHPUnit_Framework_TestSuite Returns the test suite configuration.
getTestSuiteNames ( ) : array Returns the test suite names from the configuration.
getTestdoxGroupConfiguration ( ) : array Returns the configuration for testdox groups.
handlePHPConfiguration ( ) Handles the PHP configuration.

Protected Methods

Method Description
__construct ( string $filename ) Loads a PHPUnit configuration file.
getBoolean ( string $value, boolean $default ) : boolean
getInteger ( string $value, boolean $default ) : boolean
getTestSuite ( DOMElement $testSuiteNode, $testSuiteFilter = null ) : PHPUnit_Framework_TestSuite
readFilterDirectories ( string $query ) : array
readFilterFiles ( string $query ) : array
toAbsolutePath ( string $path, boolean $useIncludePath = false ) : string

Private Methods

Method Description
__clone ( )
parseGroupConfiguration ( string $root ) : array

Method Details

__construct() protected method

Loads a PHPUnit configuration file.
protected __construct ( string $filename )
$filename string

getBoolean() protected method

protected getBoolean ( string $value, boolean $default ) : boolean
$value string
$default boolean
return boolean

getFilename() public method

Returns the realpath to the configuration file.
public getFilename ( ) : string
return string

getFilterConfiguration() public method

Returns the configuration for SUT filtering.
public getFilterConfiguration ( ) : array
return array

getGroupConfiguration() public method

Returns the configuration for groups.
public getGroupConfiguration ( ) : array
return array

getInstance() public static method

Returns a PHPUnit configuration object.
public static getInstance ( string $filename ) : PHPUnit_Util_Configuration
$filename string
return PHPUnit_Util_Configuration

getInteger() protected method

protected getInteger ( string $value, boolean $default ) : boolean
$value string
$default boolean
return boolean

getListenerConfiguration() public method

Returns the configuration for listeners.
public getListenerConfiguration ( ) : array
return array

getLoggingConfiguration() public method

Returns the logging configuration.
public getLoggingConfiguration ( ) : array
return array

getPHPConfiguration() public method

Returns the PHP configuration.
public getPHPConfiguration ( ) : array
return array

getPHPUnitConfiguration() public method

Returns the PHPUnit configuration.
public getPHPUnitConfiguration ( ) : array
return array

getTestSuite() protected method

protected getTestSuite ( DOMElement $testSuiteNode, $testSuiteFilter = null ) : PHPUnit_Framework_TestSuite
$testSuiteNode DOMElement
return PHPUnit_Framework_TestSuite

getTestSuiteConfiguration() public method

Returns the test suite configuration.
public getTestSuiteConfiguration ( $testSuiteFilter = null ) : PHPUnit_Framework_TestSuite
return PHPUnit_Framework_TestSuite

getTestSuiteNames() public method

Returns the test suite names from the configuration.
public getTestSuiteNames ( ) : array
return array

getTestdoxGroupConfiguration() public method

Returns the configuration for testdox groups.

handlePHPConfiguration() public method

Handles the PHP configuration.

readFilterDirectories() protected method

protected readFilterDirectories ( string $query ) : array
$query string
return array

readFilterFiles() protected method

protected readFilterFiles ( string $query ) : array
$query string
return array

toAbsolutePath() protected method

protected toAbsolutePath ( string $path, boolean $useIncludePath = false ) : string
$path string
$useIncludePath boolean
return string

Property Details

$document protected_oe property

protected $document

$filename protected_oe property

protected $filename

$xpath protected_oe property

protected $xpath