PHP Класс ParaTest\Runners\PHPUnit\Configuration

Stores information about the phpunit xml configuration being used to run tests
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$availableNodes
$path string Path to the configuration file
$suites array A collection of datastructures build from the nodes inside of a PHPUnit configuration
$xml SimpleXMLElement

Открытые методы

Метод Описание
__construct ( $path )
__toString ( ) : string Converting the configuration to a string returns the configuration path
getBootstrap ( ) : string Get the bootstrap PHPUnit configuration attribute
getConfigDir ( ) : string Return the path of the directory that contains the phpunit configuration
getPath ( ) : string Returns the path to the phpunit configuration file
getSuiteByName ( string $suiteName ) : SuitePath[] | null Return the contents of the nodes contained in a PHPUnit configuration
getSuitePaths ( $path ) : array | string[] Returns a suite paths relative to the config file
getSuites ( ) : SuitePath[][] | null Return the contents of the nodes contained in a PHPUnit configuration
isGlobRequired ( string $path ) : boolean Returns true if path needs globbing (like a /path/*-to/string)

Описание методов

__construct() публичный Метод

public __construct ( $path )

__toString() публичный Метод

Converting the configuration to a string returns the configuration path
public __toString ( ) : string
Результат string

getBootstrap() публичный Метод

Get the bootstrap PHPUnit configuration attribute
public getBootstrap ( ) : string
Результат string The bootstrap attribute or empty string if not set

getConfigDir() публичный Метод

Return the path of the directory that contains the phpunit configuration
public getConfigDir ( ) : string
Результат string

getPath() публичный Метод

Returns the path to the phpunit configuration file
public getPath ( ) : string
Результат string

getSuiteByName() публичный Метод

Return the contents of the nodes contained in a PHPUnit configuration
public getSuiteByName ( string $suiteName ) : SuitePath[] | null
$suiteName string
Результат SuitePath[] | null

getSuitePaths() публичный Метод

Returns a suite paths relative to the config file
public getSuitePaths ( $path ) : array | string[]
$path
Результат array | string[]

getSuites() публичный Метод

Return the contents of the nodes contained in a PHPUnit configuration
public getSuites ( ) : SuitePath[][] | null
Результат SuitePath[][] | null

isGlobRequired() публичный Метод

Returns true if path needs globbing (like a /path/*-to/string)
public isGlobRequired ( string $path ) : boolean
$path string
Результат boolean

Описание свойств

$availableNodes защищенное свойство

protected $availableNodes

$path защищенное свойство

Path to the configuration file
protected string $path
Результат string

$suites защищенное свойство

A collection of datastructures build from the nodes inside of a PHPUnit configuration
protected array $suites
Результат array

$xml защищенное свойство

protected SimpleXMLElement $xml
Результат SimpleXMLElement