Method |
Description |
|
__construct ( ) |
|
|
checkLogForTestFailure ( string $line ) : boolean |
Checks if line contains failure regex |
|
checkLogForTestPass ( string $line ) : boolean |
Check if it contains any text that indiciates that the test has passed. |
|
filterFileName ( string $filename ) : string |
Filter out content from a title any to improve readability of the test name |
|
filterTitle ( string $title ) : string |
Turn a "CamelCasedString" into "Camel Cased String". |
|
getFilename ( ) : string |
Get the file Filename |
|
getHash ( ) : string |
Get the Test Hash |
|
getLog ( $format = TRUE ) : HTML/Array |
Return the log as a HTML string. |
|
getState ( ) : boolean |
Get the Test state based on if the test has run or passed. |
|
getTitle ( ) : string |
Get the Test title |
|
getType ( ) : string |
Get the Test type |
|
init ( string $type, object $file ) |
Initialization of the Test |
|
makeHash ( string $string ) : string |
Generate a unique hash for the test. |
|
passed ( ) : boolean |
Return if the test was run and passed |
|
ran ( ) : boolean |
Return if the test was successfully run. |
|
reset ( ) |
Reset a Test back to default. |
|
setFailed ( ) |
Sets passed to false if test fails |
|
setLog ( $lines = [] ) |
Add a new line entry to the Test log. |
|
setPassed ( ) : boolean |
Set if the test has been passed. |
|