FUnit::add_assertion_result PHP Méthode

add_assertion_result() protected static méthode

Normally you would not call this method directly
See also: FUnit::ok()
See also: FUnit::equal()
See also: FUnit::not_equal()
See also: FUnit::strict_equal()
See also: FUnit::not_strict_equal()
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
    protected static function add_assertion_result(\FUnit\TestSuite $suite, $func_name, $func_args, $result, $file, $line, $fail_info, $msg = null, $expected_fail = false)
    {
        $suite->addAssertionResult($func_name, $func_args, $result, $file, $line, $fail_info, $msg, $expected_fail);
    }