예제 #1
0
 public function testCanSetTrackingProcessingTime()
 {
     $queueTime = 12345678;
     $event = new Event();
     $event->setEventCategory('foo');
     $event->setEventAction('bar');
     $event->setQueueTime($queueTime);
     $package = $event->getPackage();
     $this->assertEquals($queueTime, $package['qt']);
 }
예제 #2
0
 public function testPaketEqualsSpecification()
 {
     /** @var Event $event */
     $event = new Event();
     $event->setEventCategory('foo');
     $event->setEventAction('bar');
     $event->setEventLabel('baz');
     $event->setEventValue('val');
     $packet = $event->getPackage();
     $this->assertEquals(array('t' => 'event', 'ec' => 'foo', 'ea' => 'bar', 'el' => 'baz', 'ev' => 'val'), $packet);
 }