Property | Type | Description | |
---|---|---|---|
$filters | For example: sh lithium test lithium/tests/cases/core/ObjectTest.php --filters=Coverage lithium test lithium/tests/cases/core/ObjectTest.php --filters=Coverage,Profiler | ||
$format | Format to use for rendering results. Any other format than txt will cause the command to enter quiet mode, surpressing headers and any other decoration. | ||
$plain | boolean | Good for command calls embedded into other scripts. | |
$verbose | boolean | Enable verbose output especially for the txt format. |
Property | Type | Description | |
---|---|---|---|
$_handlers | array | An array of closures, mapped by type, which are set up to handle different test output formats. |
Method | Description | |
---|---|---|
run ( string $path = null ) : integer | boolean | Runs tests given a path to a directory or file containing tests. The path to the test(s) may be absolute or relative to the current working directory. |
Method | Description | |
---|---|---|
_init ( ) : void | Initializes the output handlers. | |
_library ( string $path ) : string | Finds a library for given path. | |
_path ( string $path ) : string | Validates and gets a fully-namespaced class path from an absolute or relative physical path to a directory or file. The final class path may be partial in that in doesn't contain the class name. |
protected array $_handlers | ||
return | array |
public $filters |
public $format |
public bool $plain | ||
return | boolean |
public bool $verbose | ||
return | boolean |