TestStatus
class TestStatus (View source)
Consolidates test result status information.
For our test runners, a $status of 0 = passed test, 1 = failed test, 2 = exception, >2 indicates segfault timeout, or other type of system failure.
Constants
| PASS |
Signify that the test result was a passed test. |
| FAIL |
Signify that the test result was a failed test. |
| EXCEPTION |
Signify that the test result was an exception or code error. This means that the test runner was able to exit and report an error. |
| SYSTEM |
Signify a system error where the test runner was unable to complete. Note that SYSTEM actually represents the lowest value of system errors, and the returned value could be as high as 127. Since that's the case, this constant should be used for range comparisons, and not just for equality. |
Methods
Turns a status code into a human-readable string.
Details
static string
label(int $status)
Turns a status code into a human-readable string.