PHP Class ParaTest\Runners\PHPUnit\SuiteLoader

显示文件 Open project: brianium/paratest Class Usage Examples

Protected Properties

Property Type Description
$files array The collection of loaded files
$loadedSuites array The collection of parsed test classes

Public Methods

Method Description
__construct ( $options = null )
getSuites ( ) : array Returns all parsed suite objects as ExecutableTest instances
getTestMethods ( ) : array Returns a collection of TestMethod objects for all loaded ExecutableTest instances
load ( string $path = '' ) Populates the loaded suite collection. Will load suites based off a phpunit xml configuration or a specified path

Private Methods

Method Description
addDependentTestsToBatchSet ( &$batches, $dependsOn, $tests )
addTestsToBatchSet ( &$batches, $tests, $maxBatchSize )
createSuite ( $path, ParaTest\Parser\ParsedClass $class )
executableTests ( $path, $class )
getMethodBatches ( ParaTest\Parser\ParsedClass $class ) : array Get method batches.
getMethodTests ( ParaTest\Parser\ParsedClass $class, ParaTest\Parser\ParsedObject $method, boolean $useDataProvider = false ) : string[] Get method all available tests.
initSuites ( ) Called after all files are loaded. Parses loaded files into ExecutableTest objects - either Suite or TestMethod
methodDataProvider ( $method )
methodDependency ( $method )
methodGroups ( $method )
testMatchFilterOptions ( $className, $name, $group )
testMatchGroupOptions ( $groups )
testMatchOptions ( $className, $name, $group )

Method Details

__construct() public method

public __construct ( $options = null )

getSuites() public method

Returns all parsed suite objects as ExecutableTest instances
public getSuites ( ) : array
return array

getTestMethods() public method

Returns a collection of TestMethod objects for all loaded ExecutableTest instances
public getTestMethods ( ) : array
return array

load() public method

Populates the loaded suite collection. Will load suites based off a phpunit xml configuration or a specified path
public load ( string $path = '' )
$path string

Property Details

$files protected_oe property

The collection of loaded files
protected array $files
return array

$loadedSuites protected_oe property

The collection of parsed test classes
protected array $loadedSuites
return array