setDebug() public method

Sets debug mode to true or false.
public setDebug ( boolean $value ) : Analytics
$value boolean
return Analytics
コード例 #1
0
 public function testSendSimpleDebugHit()
 {
     $httpClient = $this->getMock('TheIconic\\Tracking\\GoogleAnalytics\\Network\\HttpClient', ['post']);
     $this->analytics->setDebug(true)->setProtocolVersion('1')->setTrackingId('555')->setClientId('666')->setDocumentPath('\\mypage')->setHitType('pageview');
     $httpClient->expects($this->once())->method('post')->with($this->equalTo($this->analytics->getUrl()));
     $this->analytics->setHttpClient($httpClient);
     $this->analytics->sendPageview();
 }