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

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$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

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

Метод Описание
__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

Приватные методы

Метод Описание
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.

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

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

public __construct ( $options = null )

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

A valid path can be a directory or file
public loadPath ( $path, $pattern = null ) : string[]
$path
$pattern
Результат string[]

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

Loads a SuitePath and makes sure to take into account the excluded directory / files
public loadSuitePath ( SuitePath $path ) : string[]
$path SuitePath
Результат string[]

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

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

The collection of excluded files
protected array $excludedFiles
Результат array

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

When true, the SuiteLoader add the files to excluded files
protected bool $excludingFiles
Результат boolean

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

The collection of loaded files for this test suite
protected array $files
Результат array