$testCollector = new PHPUnit_Runner_IncludePathTestCollector(
array('/path/to/*Test.php files')
);
$suite = new PHPUnit_Framework_TestSuite('My Test Suite');
$suite->addTestFiles($testCollector->collectTests());
파일 보기
프로젝트 열기: qcodo/qcodo
1 사용 예제들
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$filterIterator | string | ||
$paths | array | ||
$prefixes | mixed | ||
$suffixes | mixed |
메소드 | 설명 | |
---|---|---|
__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 |