コード例 #1
0
ファイル: QueueTest.php プロジェクト: helthe/segmentio
 public function testQueue()
 {
     $queue = new Queue();
     $method = $this->getMock('Helthe\\Component\\Segmentio\\Method\\MethodInterface');
     $queue->enqueue($method);
     $this->assertSame($method, $queue->dequeue());
 }
コード例 #2
0
ファイル: Client.php プロジェクト: helthe/segmentio
 /**
  * {@inheritdoc}
  */
 public function track($event, array $properties = array())
 {
     $this->queue->enqueue(new TrackMethod($event, $properties));
 }