예제 #1
0
 public function testGetSetAttributes()
 {
     $ua = new UniversalAnalytics\UA();
     $ua->version('1');
     $ua->trackingid('UX-ABCD-XYZ');
     $ua->clientid('555');
     $this->assertEquals('1', $ua->version());
     $this->assertEquals('UX-ABCD-XYZ', $ua->trackingid());
     $this->assertEquals('555', $ua->clientid());
 }
예제 #2
0
 public function testGetSetAttributes()
 {
     $ua = new UniversalAnalytics\UA();
     $ua->version('1');
     $ua->trackingid('UX-ABCD-XYZ');
     $ua->clientid('555');
     $ua->useragent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0');
     $this->assertEquals('1', $ua->version());
     $this->assertEquals('UX-ABCD-XYZ', $ua->trackingid());
     $this->assertEquals('555', $ua->clientid());
     $this->assertEquals('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0', $ua->useragent());
 }