begin_test

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

Description

begin_test( (string) $test_name, $test_case ); 

Parameters (2)

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

Usage

  1. if ( !function_exists( 'begin_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. // NOTICE! Understand what this does before running. 
  11. $result = begin_test($test_name, $test_case); 
  12.  

Defined (1)

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

/src/xmlrpc-3.0/test/benchmark.php  
  1. function begin_test($test_name, $test_case) 
  2. global $test_results; 
  3. if (!isset($test_results[$test_name])) 
  4. $test_results[$test_name]=array(); 
  5. $test_results[$test_name][$test_case] = array(); 
  6. $test_results[$test_name][$test_case]['time'] = microtime(true);