Method | Description | |
---|---|---|
__construct ( ) | Starts with an empty queue. | |
add ( integer $severity, string $content, string $filename, integer $line ) | Adds an error to the front of the queue. | |
clear ( ) | Discards the contents of the error queue. | |
expectError ( SimpleExpectation $expected, string $message ) | Sets up an expectation of an error. | |
extract ( ) : mixed | Pulls the earliest error from the queue. | |
getSeverityAsString ( $severity ) : String | Converts an error code into it's string representation. | |
setTestCase ( SimpleTestCase $test ) | Sets the currently running test case. | |
tally ( ) | Any errors still in the queue are sent to the test case. |
Method | Description | |
---|---|---|
extractExpectation ( ) : SimpleExpectation | Pulls the earliest expectation from the queue. | |
testLatestError ( integer $severity, string $content, string $filename, integer $line ) | Tests the error against the most recent expected error. |
public expectError ( SimpleExpectation $expected, string $message ) | ||
$expected | SimpleExpectation | Expected error match. |
$message | string | Message to display. |
protected extractExpectation ( ) : SimpleExpectation | ||
return | SimpleExpectation | False if none. |
public static getSeverityAsString ( $severity ) : String | ||
$severity | PHP integer error code. | |
return | String | version of error code. |
public setTestCase ( SimpleTestCase $test ) | ||
$test | SimpleTestCase | Test case to send messages to. |