public function testTrack()
 {
     $this->clientMock->expects($this->once())->method('social')->with(array('t' => 'social', 'sa' => 'some_action', 'sn' => 'some_network', 'st' => 'some_target'));
     $this->hit->setAction('some_action')->setNetwork('some_network')->setTarget('some_target')->track();
 }
 public function testTrack()
 {
     $this->clientMock->expects($this->once())->method('event')->with(array('t' => 'event', 'ec' => 'test_category', 'ev' => 'test_value', 'ea' => 'test_action', 'el' => 'test_label', 'cid' => 'test_customer_id', 'tid' => 'test_tracking_id', 'ua' => 'test_user_agent', 'uip' => 'test_user_id', 'v' => 'test_version'));
     $this->hit->setCategory('test_category')->setValue('test_value')->setAction('test_action')->setLabel('test_label')->setCustomerId('test_customer_id')->setTrackingId('test_tracking_id')->setUserAgent('test_user_agent')->setUserIp('test_user_id')->setVersion('test_version')->track();
 }
 public function testTrack()
 {
     $this->clientMock->expects($this->once())->method('pageview')->with(array('t' => 'pageview', 'dh' => 'some_hostname', 'dp' => 'some_path', 'dt' => 'some_title'));
     $this->hit->setDocumentHostname('some_hostname')->setDocumentPath('some_path')->setTitle('some_title')->track();
 }
 public function testTrack()
 {
     $this->clientMock->expects($this->once())->method('transaction')->with(array('t' => 'transaction', 'ti' => 'some_id', 'ta' => 'some_affiliation', 'tr' => 'some_revenue', 'ts' => 'some_shipping', 'tt' => 'some_tax', 'cu' => 'some_currency'));
     $this->hit->setId('some_id')->setAffiliation('some_affiliation')->setRevenue('some_revenue')->setShipping('some_shipping')->setTax('some_tax')->setCurrency('some_currency')->track();
 }
 public function testTrack()
 {
     $this->clientMock->expects($this->once())->method('exception')->with(array('t' => 'exception', 'exd' => 'test_exception_description', 'exf' => true));
     $this->hit->setExceptionDescription('test_exception_description')->setExceptionIsFatal(true)->track();
 }
 public function testTrack()
 {
     $this->clientMock->expects($this->once())->method('screenview')->with(array('t' => 'screenview', 'an' => 'some_app_name', 'av' => 'some_app_version', 'aid' => 'some_app_id', 'aiid' => 'some_app_installer_id', 'cd' => 'some_content_description'));
     $this->hit->setAppName('some_app_name')->setAppVersion('some_app_version')->setAppId('some_app_id')->setAppInstallerId('some_app_installer_id')->setContentDescription('some_content_description')->track();
 }
 public function testTrack()
 {
     $this->clientMock->expects($this->once())->method('timing')->with(array('t' => 'timing', 'utc' => 'some_category', 'utv' => 'some_variable', 'utt' => 'some_time', 'utl' => 'some_label', 'dns' => 'some_dns_load_time', 'pdt' => 'some_page_download_time', 'rrt' => 'some_redirect_time', 'tcp' => 'some_tcp_connect_time', 'srt' => 'some_server_response_time'));
     $this->hit->setCategory('some_category')->setVariable('some_variable')->setTime('some_time')->setLabel('some_label')->setDnsLoadTime('some_dns_load_time')->setPageDownloadTime('some_page_download_time')->setRedirectTime('some_redirect_time')->setTcpConnectTime('some_tcp_connect_time')->setServerResponseTime('some_server_response_time')->track();
 }
 public function testTrack()
 {
     $this->clientMock->expects($this->once())->method('item')->with(array('t' => 'item', 'ti' => 'some_transaction_id', 'cu' => 'some_currency', 'ic' => 'some_item_code', 'in' => 'some_item_name', 'ip' => 'some_item_price', 'iq' => 1, 'iv' => 'some_item_variation'));
     $this->hit->setTransactionId('some_transaction_id')->setCurrency('some_currency')->setItemCode('some_item_code')->setItemName('some_item_name')->setItemPrice('some_item_price')->setItemQuantity('1')->setItemVariation('some_item_variation')->track();
 }