Ejemplo n.º 1
0
 public function testRecordCustomEvent()
 {
     $name = 'foo';
     $attributes = array('bar' => 'baz', 'qux' => false);
     $result = true;
     $handler = $this->getHandlerSpy('newrelic_record_custom_event', array($name, $attributes), $result);
     $agent = new Newrelic(false, $handler);
     $this->assertSame($result, $agent->recordCustomEvent($name, $attributes));
 }