public function testTrack() { $queue = $this->getQueueMock(); $queue->expects($this->once())->method('enqueue')->with($this->equalTo(new TrackMethod('foo'))); $client = new Client($queue, 'foo_key'); $client->track('foo'); }
/** * Constructor. * * @param GuzzleClientInterface $client * @param Queue $queue * @param string $writeKey */ public function __construct(GuzzleClientInterface $client, Queue $queue, $writeKey) { parent::__construct($queue, $writeKey); $this->client = $client; }