public function testGetBrowserTimingFooter()
 {
     $includeTags = false;
     $result = '<p>Foo</p>';
     $handler = $this->getHandlerSpy('newrelic_get_browser_timing_footer', array($includeTags), $result);
     $agent = new Newrelic(false, $handler);
     $this->assertSame($result, $agent->getBrowserTimingFooter($includeTags));
 }
Beispiel #2
0
 /**
  * Returns the JavaScript string to inject at the very end of the HTML output for browser timing (real user
  * monitoring). If flag is specified it must be a boolean, and if omitted, defaults to true. This indicates whether
  * or not surrounding script tags should be returned as part of the string.
  *
  * @param bool $flag
  * @return string 
  * @static 
  */
 public static function getBrowserTimingFooter($flag = true)
 {
     return \Intouch\Newrelic\Newrelic::getBrowserTimingFooter($flag);
 }