$beholder = new \Jyxo\Beholder\Executor('Project', $_GET);
$beholder->addTest('T1', new \Project\Beholder\Test1('Test 1'));
$beholder->addTest('T2', new \Project\Beholder\Test2('Test 2'));
$beholder->addTest('T3', new \Project\Beholder\Test3Blah('Test 3 Blah'));
$beholder->run();
Afficher le fichier
Open project: jyxo/php
Méthode | Description | |
---|---|---|
__construct ( string $project, array $params = [] ) | Constructor. | |
addTest ( string $ident, TestCase $test ) : self | Adds a test. | |
getTestsData ( ) : array | Returns tests data. | |
run ( ) : boolean | Performs chosen tests and outputs results according to the selected output type. | |
setParams ( array $params ) |
Méthode | Description | |
---|---|---|
includeTest ( string $ident ) : boolean | Checks if the given test will be performed according to the current filter settings. | |
patternMatch ( string $pattern, string $string ) : boolean | Checks if the given string matches the given pattern. | |
runTest ( string $ident ) : array | Runs a single test. | |
writeHtml ( boolean $allSucceeded ) | Outputs results in HTML form. | |
writeText ( boolean $allSucceeded ) | Outputs results in plaintext. |
public __construct ( string $project, array $params = [] ) | ||
$project | string | Project name |
$params | array | Parameters; possible parameters are: include, exclude, output |