diff --git a/tests/PHPUnit/Integration/BackwardsCompatibility1XTest.php b/tests/PHPUnit/Integration/BackwardsCompatibility1XTest.php
index ab7a68ed17f8fa33d69c6cb67cd4549cc2f3a072..c38c09dff781cc757c54abbff1700cb5882cab59 100644
--- a/tests/PHPUnit/Integration/BackwardsCompatibility1XTest.php
+++ b/tests/PHPUnit/Integration/BackwardsCompatibility1XTest.php
@@ -33,7 +33,8 @@ class Test_Piwik_Integration_BackwardsCompatibility1XTest extends IntegrationTes
         $dateTime = '2010-03-06 11:22:33';
 
         return array(
-            array('all', array('idSite' => $idSite, 'date' => $dateTime, 'compareAgainst' => 'OneVisitorTwoVisits',
+            array('all', array('idSite' => $idSite, 'date' => $dateTime,
+                               'compareAgainst' => 'OneVisitorTwoVisits',
                                'disableArchiving' => true)),
         );
     }
diff --git a/tests/PHPUnit/IntegrationTestCase.php b/tests/PHPUnit/IntegrationTestCase.php
index 42a0a3656f1961ed9c5e961e35ebd440b1968b1a..701f87b3a7f1a51f8f340aa8206556375c6092f6 100755
--- a/tests/PHPUnit/IntegrationTestCase.php
+++ b/tests/PHPUnit/IntegrationTestCase.php
@@ -814,7 +814,9 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase
         $expected = str_replace('.11</revenue>', '</revenue>', $expected);
         $response = str_replace('.11</revenue>', '</revenue>', $response);
 
-        file_put_contents($processedFilePath, $response);
+        if (empty($compareAgainst)) {
+            file_put_contents($processedFilePath, $response);
+        }
 
         try {
             if (strpos($requestUrl, 'format=xml') !== false) {