protected static add_assertion_result ( TestSuite $suite, string $func_name, array $func_args, mixed $result, $file, $line, $fail_info, string $msg = null, boolean $expected_fail = false ) | ||
$suite | FUnit\TestSuite | the suite to add the result to |
$func_name | string | the name of the assertion function |
$func_args | array | the arguments for the assertion. Really just the $a (actual) and $b (expected) |
$result | mixed | this is expected to be truthy or falsy, and is converted into FUnit::PASS or FUnit::FAIL |
$msg | string | optional message describing the assertion |
$expected_fail | boolean | optional expectation of the assertion to fail |