$testCollector = new PHPUnit_Runner_IncludePathTestCollector(
array('/path/to/*Test.php files')
);
$suite = new PHPUnit_Framework_TestSuite('My Test Suite');
$suite->addTestFiles($testCollector->collectTests());
ファイルを表示
Open project: qcodo/qcodo
Class Usage Examples
Property | Type | Description | |
---|---|---|---|
$filterIterator | string | ||
$paths | array | ||
$prefixes | mixed | ||
$suffixes | mixed |
Method | Description | |
---|---|---|
__construct ( array $paths = [], mixed $suffixes = ['Test.php', '.phpt'], mixed $prefixes = [] ) | ||
collectTests ( ) : File_Iterator | ||
setFilterIterator ( string $filterIterator ) | Adds a FilterIterator to filter the source files to be collected. |
public setFilterIterator ( string $filterIterator ) | ||
$filterIterator | string |