If image response is disabled Piwik will respond with a HTTP 204 header instead of responding with a gif.
public disableSendImageResponse ( ) |
public function test_response_ShouldBeEmpty_IfImageIsDisabled() { $this->tracker->disableSendImageResponse(); $response = $this->tracker->doTrackPageView('Test'); $this->assertSame('', $response); }