end_test

The Contact Form 7 - Infusionsoft Add-on end test function.

Description

end_test( (string) $test_name, $test_case, $test_result ); 

Parameters (3)

0. $test_name (string)
The test name.
1. $test_case
The test case.
2. $test_result
The test result.

Usage

  1. if ( !function_exists( 'end_test' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/test/benchmark.php'; 
  3.  
  4. // The test name. 
  5. $test_name = ''; 
  6.  
  7. // The test case. 
  8. $test_case = null; 
  9.  
  10. // The test result. 
  11. $test_result = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = end_test($test_name, $test_case, $test_result); 
  15.  

Defined (1)

The function is defined in the following location(s).

/src/xmlrpc-3.0/test/benchmark.php  
  1. function end_test($test_name, $test_case, $test_result) 
  2. global $test_results; 
  3. $end = microtime(true); 
  4. if (!isset($test_results[$test_name][$test_case])) 
  5. trigger_error('ending test that was not sterted'); 
  6. $test_results[$test_name][$test_case]['time'] = $end - $test_results[$test_name][$test_case]['time']; 
  7. $test_results[$test_name][$test_case]['result'] = $test_result; 
  8. echo '.'; 
  9. flush(); 
  10. ob_flush();