You appear to be a bot. Output may be restricted
Description
Test trace plugin startup with tracing off
Note: There's a lot of faffing to cater for the fact that trace may already have been started. If BW_TRACE_ON is defined then we can't test this.
Usage
Tests_oik_bwtrace::test_bw_trace_plugin_startup_tracing_off();
Parameters
Returns
void
Source
File name: oik-bwtrace/tests/test–oik-bwtrace.php
Lines:
1 to 35 of 35
function test_bw_trace_plugin_startup_tracing_off() { if ( defined( 'BW_TRACE_ON' ) ) { $this->markTestSkipped( "Constant BW_TRACE_ON is defined: " . BW_TRACE_ON ); } global $bw_trace_options; global $bw_action_options; $this->save_bw_trace_options(); if ( $bw_trace_options['trace_cli'] == "on" ) { $bw_trace_options['trace_cli'] = '0'; bw_trace_off(); } $this->init_bw_trace_options(); $bw_trace_options['trace_cli'] = '0'; $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->assertFalse( $tracing ); $this->restore_bw_trace_options(); $this->restore_bw_action_options(); $this->restore_bw_trace_files_options(); }