You appear to be a bot. Output may be restricted
Description
Test trace plugin startup with tracing on
- We have to ensure tracing is on and to a file we control
- The trace file should be reset.
Usage
Tests_oik_bwtrace::test_bw_trace_plugin_startup_tracing_on();
Parameters
Returns
void
Source
File name: oik-bwtrace/tests/test–oik-bwtrace.php
Lines:
1 to 32 of 32
function test_bw_trace_plugin_startup_tracing_on() { global $bw_trace_options; global $bw_action_options; $this->save_bw_trace_options(); $this->init_bw_trace_options(); $bw_trace_options['trace_cli'] = 'on'; $this->init_bw_trace_files_options(); $this->update_bw_trace_options(); $this->update_bw_trace_files_options(); $this->save_bw_action_options(); $this->init_bw_action_options(); global $bw_trace; //print_r( $bw_trace ); bw_trace_plugin_startup(); //print_r( $bw_trace ); $tracing = bw_trace_status(); $this->assertTrue( $tracing ); $this->restore_bw_trace_options(); $this->restore_bw_action_options(); //if ( $bw_trace_options['trace'] == 0 ) { // bw_trace_off(); //} }