$data
$data : \StdClass
A public object for storing state and other variables across test cases and method calls.
Testify - a micro unit testing framework
This is the main class of the framework. Use it like this:
assertIdentical(mixed $arg1, mixed $arg2, string $message = '') : boolean
Alias for {@see assertSame}.
| mixed | $arg1 | |
| mixed | $arg2 | |
| string | $message | (optional) Custom message. SHOULD be specified for easier debugging |
| None found |
| None found |
recordTest(boolean $pass, string $message = '') : boolean
A helper method for recording the results of the assertions in the internal stack.
| boolean | $pass | If equals true, the test has passed, otherwise failed |
| string | $message | (optional) Custom message |
| None found |
getFileLine(string $file, integer $line) : string
Internal method for fetching a specific line of a text file. With caching.
| string | $file | The file name |
| integer | $line | The line number to return |
| None found |
affirmCallable(mixed $callback, string $name)
Internal helper method for determine whether a variable is callable as a function.
| mixed | $callback | The variable to check |
| string | $name | Used for the error message text to indicate the name of the parent context |
if callback argument is not a function
| None found |