Ejemplo n.º 1
0
 public function testQueue()
 {
     $queue = new Queue();
     $method = $this->getMock('Helthe\\Component\\Segmentio\\Method\\MethodInterface');
     $queue->enqueue($method);
     $this->assertSame($method, $queue->dequeue());
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function track($event, array $properties = array())
 {
     $this->queue->enqueue(new TrackMethod($event, $properties));
 }