public function testSetUserAttributes() { $user = '******'; $account = 'bar'; $product = 'baz'; $result = true; $handler = $this->getHandlerSpy('newrelic_set_user_attributes', array($user, $account, $product), $result); $agent = new Newrelic(false, $handler); $this->assertSame($result, $agent->setUserAttributes($user, $account, $product)); }
/** * Adds the three parameter strings to collected browser traces. All three parameters are required, but may be empty * strings. For more information please see the section on * {@link https://newrelic.com/docs/features/browser-traces browser traces}. * * @param string $user * @param string $account * @param string $product * @return mixed * @static */ public static function setUserAttributes($user = '', $account = '', $product = '') { return \Intouch\Newrelic\Newrelic::setUserAttributes($user, $account, $product); }