Method |
Description |
|
__construct ( string $label = false ) |
Creates an empty test case. |
|
assertEqual ( mixed $first, mixed $second, string $message = '%s' ) : boolean |
Will trigger a pass if the two parameters have the same value only. |
|
assertExitCode ( integer $status, string $message = '%s' ) : boolean |
Tests the last status code from the shell. |
|
assertFalse ( boolean $result, string $message = '%s' ) : boolean |
Will be true on false and vice versa. |
|
assertFileExists ( string $path, string $message = '%s' ) : boolean |
File existence check. |
|
assertFileNotExists ( string $path, string $message = '%s' ) : boolean |
File non-existence check. |
|
assertFilePattern ( string $pattern, string $path, string $message = '%s' ) : boolean |
Scans a file for a Perl regex. If found anywhere it passes, else it fails. |
|
assertNoFilePattern ( string $pattern, string $path, string $message = '%s' ) : boolean |
If a Perl regex is found anywhere in the named file
then a failure is generated, else a pass. |
|
assertNoOutputPattern ( string $pattern, $message = '%s' ) : boolean |
If a Perl regex is found anywhere in the current output
then a failure is generated, else a pass. |
|
assertNotEqual ( mixed $first, mixed $second, string $message = '%s' ) : boolean |
Will trigger a pass if the two parameters have a different value. |
|
assertOutput ( string $expected, string $message = '%s' ) : boolean |
Attempt to exactly match the combined STDERR and STDOUT output. |
|
assertOutputPattern ( string $pattern, string $message = '%s' ) : boolean |
Scans the output for a Perl regex. If found anywhere it passes, else it fails. |
|
assertTrue ( boolean $result, string $message = false ) : boolean |
Called from within the test methods to register passes and failures. |
|
dumpOutput ( ) |
Dumps the output of the last command. |
|
execute ( string $command ) : boolean |
Executes a command and buffers the results. |
|
getOutput ( ) : string |
Accessor for the last output. |
|
getOutputAsList ( ) : array |
Accessor for the last output. |
|