Configuration
class Configuration (View source)
Wrapper for the PHPUnit XML configuration file.
Example XML configuration file:
Constants
TEST_SUITE_FILTER_SEPARATOR |
|
Properties
protected | $document | ||
protected | $xpath | ||
protected | $filename |
Methods
Loads a PHPUnit configuration file.
Returns a PHPUnit configuration object.
Returns the realpath to the configuration file.
Returns the configuration for SUT filtering.
Returns the configuration for groups.
Returns the configuration for testdox groups.
Returns the configuration for listeners.
Returns the logging configuration.
Returns the PHP configuration.
Handles the PHP configuration.
Returns the PHPUnit configuration.
Returns the test suite configuration.
Returns the test suite names from the configuration.
if $value is 'false' or 'true', this returns the value that $value represents.
No description
No description
No description
No description
Details
at line 166
protected
__construct(string $filename)
Loads a PHPUnit configuration file.
at line 184
static Configuration
getInstance(string $filename)
Returns a PHPUnit configuration object.
at line 209
string
getFilename()
Returns the realpath to the configuration file.
at line 219
array
getFilterConfiguration()
Returns the configuration for SUT filtering.
at line 281
array
getGroupConfiguration()
Returns the configuration for groups.
at line 291
array
getTestdoxGroupConfiguration()
Returns the configuration for testdox groups.
at line 324
array
getListenerConfiguration()
Returns the configuration for listeners.
at line 369
array
getLoggingConfiguration()
Returns the logging configuration.
at line 430
array
getPHPConfiguration()
Returns the PHP configuration.
at line 499
handlePHPConfiguration()
Handles the PHP configuration.
at line 574
array
getPHPUnitConfiguration()
Returns the PHPUnit configuration.
at line 887
TestSuite
getTestSuiteConfiguration(string|null $testSuiteFilter = null)
Returns the test suite configuration.
at line 916
array
getTestSuiteNames()
Returns the test suite names from the configuration.
at line 933
protected TestSuite
getTestSuite(DOMElement $testSuiteNode, string|null $testSuiteFilter = null)
at line 1057
protected string|bool
getBoolean(string $value, string|bool $default)
if $value is 'false' or 'true', this returns the value that $value represents.
Otherwise, returns $default, which may be a string in rare cases. See PHPUnit\Util\ConfigurationTest::testPHPConfigurationIsReadCorrectly