PHPUnit_Util_Configuration
in package
Wrapper for the PHPUnit XML configuration file.
Example XML configuration file:
Tags
Table of Contents
- $document : mixed
- $filename : mixed
- $xpath : mixed
- $instances : mixed
- getFilename() : string
- Returns the realpath to the configuration file.
- getFilterConfiguration() : array<string|int, mixed>
- Returns the configuration for SUT filtering.
- getGroupConfiguration() : array<string|int, mixed>
- Returns the configuration for groups.
- getInstance() : PHPUnit_Util_Configuration
- Returns a PHPUnit configuration object.
- getListenerConfiguration() : array<string|int, mixed>
- Returns the configuration for listeners.
- getLoggingConfiguration() : array<string|int, mixed>
- Returns the logging configuration.
- getPHPConfiguration() : array<string|int, mixed>
- Returns the PHP configuration.
- getPHPUnitConfiguration() : array<string|int, mixed>
- Returns the PHPUnit configuration.
- getSeleniumBrowserConfiguration() : array<string|int, mixed>
- Returns the SeleniumTestCase browser configuration.
- getTestSuiteConfiguration() : PHPUnit_Framework_TestSuite
- Returns the test suite configuration.
- handlePHPConfiguration() : mixed
- Handles the PHP configuration.
- __construct() : mixed
- Loads a PHPUnit configuration file.
- getBoolean() : bool
- getInteger() : bool
- getTestSuite() : PHPUnit_Framework_TestSuite
- readFilterDirectories() : array<string|int, mixed>
- readFilterFiles() : array<string|int, mixed>
- toAbsolutePath() : string
- __clone() : mixed
Properties
$document
protected
mixed
$document
$filename
protected
mixed
$filename
$xpath
protected
mixed
$xpath
$instances
private
static mixed
$instances
= array()
Methods
getFilename()
Returns the realpath to the configuration file.
public
getFilename() : string
Tags
Return values
string —getFilterConfiguration()
Returns the configuration for SUT filtering.
public
getFilterConfiguration() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getGroupConfiguration()
Returns the configuration for groups.
public
getGroupConfiguration() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getInstance()
Returns a PHPUnit configuration object.
public
static getInstance(string $filename) : PHPUnit_Util_Configuration
Parameters
- $filename : string
Tags
Return values
PHPUnit_Util_Configuration —getListenerConfiguration()
Returns the configuration for listeners.
public
getListenerConfiguration() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getLoggingConfiguration()
Returns the logging configuration.
public
getLoggingConfiguration() : array<string|int, mixed>
Return values
array<string|int, mixed> —getPHPConfiguration()
Returns the PHP configuration.
public
getPHPConfiguration() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getPHPUnitConfiguration()
Returns the PHPUnit configuration.
public
getPHPUnitConfiguration() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getSeleniumBrowserConfiguration()
Returns the SeleniumTestCase browser configuration.
public
getSeleniumBrowserConfiguration() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getTestSuiteConfiguration()
Returns the test suite configuration.
public
getTestSuiteConfiguration([mixed $testSuiteFilter = null ]) : PHPUnit_Framework_TestSuite
Parameters
- $testSuiteFilter : mixed = null
Tags
Return values
PHPUnit_Framework_TestSuite —handlePHPConfiguration()
Handles the PHP configuration.
public
handlePHPConfiguration() : mixed
Tags
Return values
mixed —__construct()
Loads a PHPUnit configuration file.
protected
__construct(string $filename) : mixed
Parameters
- $filename : string
Return values
mixed —getBoolean()
protected
getBoolean(string $value, bool $default) : bool
Parameters
- $value : string
- $default : bool
Tags
Return values
bool —getInteger()
protected
getInteger(string $value, bool $default) : bool
Parameters
- $value : string
- $default : bool
Tags
Return values
bool —getTestSuite()
protected
getTestSuite(DOMElement $testSuiteNode[, mixed $testSuiteFilter = null ]) : PHPUnit_Framework_TestSuite
Parameters
- $testSuiteNode : DOMElement
- $testSuiteFilter : mixed = null
Tags
Return values
PHPUnit_Framework_TestSuite —readFilterDirectories()
protected
readFilterDirectories(string $query) : array<string|int, mixed>
Parameters
- $query : string
Tags
Return values
array<string|int, mixed> —readFilterFiles()
protected
readFilterFiles(string $query) : array<string|int, mixed>
Parameters
- $query : string
Tags
Return values
array<string|int, mixed> —toAbsolutePath()
protected
toAbsolutePath(string $path[, bool $useIncludePath = false ]) : string
Parameters
- $path : string
- $useIncludePath : bool = false
Tags
Return values
string —__clone()
private
final __clone() : mixed