PHP Class ParaTest\Runners\PHPUnit\TestFileLoader

Datei anzeigen Open project: brianium/paratest Class Usage Examples

Protected Properties

Property Type Description
$excludedFiles array The collection of excluded files
$excludingFiles boolean When true, the SuiteLoader add the files to excluded files
$files array The collection of loaded files for this test suite

Public Methods

Method Description
__construct ( $options = null )
loadPath ( $path, $pattern = null ) : string[] Loads suites based on a specific path.
loadSuitePath ( SuitePath $path ) : string[] Loads a SuitePath and makes sure to take into account the excluded directory / files

Private Methods

Method Description
loadDir ( string $path, string $pattern = self::TEST_PATTERN ) Loads suites from a directory
loadFile ( $path ) Load a single suite file
tryLoadTests ( string $path, string $pattern = self::TEST_PATTERN ) Attempts to load suites from a path.

Method Details

__construct() public method

public __construct ( $options = null )

loadPath() public method

A valid path can be a directory or file
public loadPath ( $path, $pattern = null ) : string[]
$path
$pattern
return string[]

loadSuitePath() public method

Loads a SuitePath and makes sure to take into account the excluded directory / files
public loadSuitePath ( SuitePath $path ) : string[]
$path SuitePath
return string[]

Property Details

$excludedFiles protected_oe property

The collection of excluded files
protected array $excludedFiles
return array

$excludingFiles protected_oe property

When true, the SuiteLoader add the files to excluded files
protected bool $excludingFiles
return boolean

$files protected_oe property

The collection of loaded files for this test suite
protected array $files
return array