public function testCaptureParams()
 {
     $enable = true;
     $result = true;
     $handler = $this->getHandlerSpy('newrelic_capture_params', array($enable), $result);
     $agent = new Newrelic(false, $handler);
     $this->assertSame($result, $agent->captureParams($enable));
 }
Beispiel #2
0
 /**
  * If enable is omitted or set to on, enables the capturing of URL parameters for displaying in transaction traces.
  * 
  * In essence this overrides the newrelic.capture_params setting. In agents prior to 2.1.3 this was called
  * newrelic_enable_params() but that name is now deprecated.
  *
  * @param bool $enable
  * @return mixed 
  * @static 
  */
 public static function captureParams($enable = true)
 {
     return \Intouch\Newrelic\Newrelic::captureParams($enable);
 }