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 .
Afficher le fichier Open project: sebastianbergmann/phpunit Class Usage Examples

Protected Properties

Свойство Type Description
$document
$filename
$xpath

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
__clone ( )
parseGroupConfiguration ( string $root ) : array

Method Details

__construct() protected méthode

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

getBoolean() protected méthode

protected getBoolean ( string $value, boolean $default ) : boolean
$value string
$default boolean
Résultat boolean

getFilename() public méthode

Returns the realpath to the configuration file.
public getFilename ( ) : string
Résultat string

getFilterConfiguration() public méthode

Returns the configuration for SUT filtering.
public getFilterConfiguration ( ) : array
Résultat array

getGroupConfiguration() public méthode

Returns the configuration for groups.
public getGroupConfiguration ( ) : array
Résultat array

getInstance() public static méthode

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

getInteger() protected méthode

protected getInteger ( string $value, boolean $default ) : boolean
$value string
$default boolean
Résultat boolean

getListenerConfiguration() public méthode

Returns the configuration for listeners.
public getListenerConfiguration ( ) : array
Résultat array

getLoggingConfiguration() public méthode

Returns the logging configuration.
public getLoggingConfiguration ( ) : array
Résultat array

getPHPConfiguration() public méthode

Returns the PHP configuration.
public getPHPConfiguration ( ) : array
Résultat array

getPHPUnitConfiguration() public méthode

Returns the PHPUnit configuration.
public getPHPUnitConfiguration ( ) : array
Résultat array

getTestSuite() protected méthode

protected getTestSuite ( DOMElement $testSuiteNode, $testSuiteFilter = null ) : PHPUnit_Framework_TestSuite
$testSuiteNode DOMElement
Résultat PHPUnit_Framework_TestSuite

getTestSuiteConfiguration() public méthode

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

getTestSuiteNames() public méthode

Returns the test suite names from the configuration.
public getTestSuiteNames ( ) : array
Résultat array

getTestdoxGroupConfiguration() public méthode

Returns the configuration for testdox groups.
public getTestdoxGroupConfiguration ( ) : array
Résultat array

handlePHPConfiguration() public méthode

Handles the PHP configuration.

readFilterDirectories() protected méthode

protected readFilterDirectories ( string $query ) : array
$query string
Résultat array

readFilterFiles() protected méthode

protected readFilterFiles ( string $query ) : array
$query string
Résultat array

toAbsolutePath() protected méthode

protected toAbsolutePath ( string $path, boolean $useIncludePath = false ) : string
$path string
$useIncludePath boolean
Résultat string

Property Details

$document protected_oe property

protected $document

$filename protected_oe property

protected $filename

$xpath protected_oe property

protected $xpath