addAssertionResult() public method

See also: FUnit::add_assertion_result()
public addAssertionResult ( $func_name, $func_args, $result, $file, $line, $fail_info, $msg = null, $expected_fail = false )
Example #1
0
 /**
  * add the result of an assertion
  *
  * Normally you would not call this method directly
  *
  * @param \FUnit\TestSuite $suite the suite to add the result to
  * @param string $func_name the name of the assertion function
  * @param array $func_args the arguments for the assertion. Really just the $a (actual) and $b (expected)
  * @param mixed $result this is expected to be truthy or falsy, and is converted into FUnit::PASS or FUnit::FAIL
  * @param string $msg optional message describing the assertion
  * @param bool $expected_fail optional expectation of the assertion to fail
  * @see FUnit::ok()
  * @see FUnit::equal()
  * @see FUnit::not_equal()
  * @see FUnit::strict_equal()
  * @see FUnit::not_strict_equal()
  */
 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);
 }