Méthode | Description | |
---|---|---|
createSuiteFromClasses ( string $title, array $classes ) : TestSuite | Builds a test suite from a class list. | |
load ( string $test_file ) : TestSuite | Builds a test suite from a library of test cases. | |
selectRunnableTests ( array $candidates ) : array | Calculates the incoming test cases. Skips abstract and ignored classes. |
Méthode | Description | |
---|---|---|
makeFileVariablesGlobal ( hash $existing, hash $new ) | Imports new variables into the global namespace. | |
scrapeClassesFromFile ( string $file ) : string | Lookup classnames from file contents, in case the file may have been included before. |
public createSuiteFromClasses ( string $title, array $classes ) : TestSuite | ||
$title | string | Title of new group. |
$classes | array | Test classes. |
Résultat | TestSuite | Group loaded with the new test cases. |
protected makeFileVariablesGlobal ( hash $existing, hash $new ) | ||
$existing | hash | Variables before the file was loaded. |
$new | hash | Variables after the file was loaded. |
protected scrapeClassesFromFile ( string $file ) : string | ||
$file | string | Test File name with classes. |
Résultat | string | classnames |
public selectRunnableTests ( array $candidates ) : array | ||
$candidates | array | Candidate classes. |
Résultat | array | New classes which are test cases that shouldn't be ignored. |