assertion_stats() public static method

If called without passing a test name, retrieves info about all assertions. Else just for the named test
public static assertion_stats ( array $tests, string $test_name = null ) : array
$tests array a set of test results
$test_name string optional the name of the test about which to get assertion stats
return array has keys 'total', 'pass', 'fail', 'expected_fail'
コード例 #1
0
ファイル: TestSuite.php プロジェクト: funkatron/funit
 /**
  * @see \FUnit::assertion_stats()
  * @return array
  */
 public function assertCounts($test_name = null)
 {
     return \FUnit::assertion_stats($this->tests, $test_name);
 }