public function testConstruct()
 {
     $tracker = 'lorem';
     $event = 'ipsum';
     $values = array('foo' => 'bar');
     $track = new Track($tracker, $event, $values);
     $this->assertEquals($tracker, $track->getTrackerName());
     $this->assertEquals($event, $track->getEventName());
     $this->assertEquals($values, $track->getValues());
 }
 private function withTrackEvent($collector, Track $track)
 {
     $collector->expects($this->once())->method('collectEvent')->with($this->equalTo($track->getTrackerName()), $this->equalTo($track->getEventName()), $this->equalTo($track->getValues()));
 }
 /**
  * @param Track $event
  * @return void
  */
 public function onTcEvent(Track $event)
 {
     $this->collector->collectEvent($event->getTrackerName(), $event->getEventName(), $event->getValues());
 }