From 48e090de29577923219e8023264af4be133dce5d Mon Sep 17 00:00:00 2001
From: Benaka Moorthi <benaka.moorthi@gmail.com>
Date: Tue, 25 Jun 2013 23:51:10 -0700
Subject: [PATCH] Investigating travis build failure... (13th commit)

---
 core/Tracker/Cache.php                   | 3 ++-
 tests/PHPUnit/Fixtures/InvalidVisits.php | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/core/Tracker/Cache.php b/core/Tracker/Cache.php
index 29ffe5cce2..04eff2390c 100644
--- a/core/Tracker/Cache.php
+++ b/core/Tracker/Cache.php
@@ -44,6 +44,7 @@ class Piwik_Tracker_Cache
 
         $cache = self::getInstance();
         if (($cacheContent = $cache->get($idSite)) !== false) {
+        echo "attributes for $idSite: ".print_r($cacheContent, true);
             return $cacheContent;
         }
 
@@ -151,4 +152,4 @@ class Piwik_Tracker_Cache
         self::getInstance()->deleteAll();
     }
 
-}
\ No newline at end of file
+}
diff --git a/tests/PHPUnit/Fixtures/InvalidVisits.php b/tests/PHPUnit/Fixtures/InvalidVisits.php
index 766bbcc06d..89e9f84f2f 100644
--- a/tests/PHPUnit/Fixtures/InvalidVisits.php
+++ b/tests/PHPUnit/Fixtures/InvalidVisits.php
@@ -54,13 +54,13 @@ class Test_Piwik_Fixture_InvalidVisits extends Test_Piwik_BaseFixture
 
         // test GoogleBot UA visitor
         $t->setUserAgent('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)');
-        self::checkResponse($t->doTrackPageView('bot visit, please do not record'));
+        //self::checkResponse($t->doTrackPageView('bot visit, please do not record'));
 
         // Test IP Exclusion works with or without IP exclusion
         foreach (array(false, true) as $enable) {
             $excludedIp = '154.1.12.34';
             Piwik_SitesManager_API::getInstance()->updateSite($idSite, 'new site name', $url = array('http://site.com'), $ecommerce = 0, $ss = 1, $ss_kwd = '', $ss_cat = '', $excludedIp . ',1.2.3.4', $excludedQueryParameters = null, $timezone = null, $currency = null, $group = null, $startDate = null, $excludedUserAgents = 'excludeduseragentstring');
-throw new Exception("\nAFTER UPDATE: ".print_r(Piwik_Tracker_Cache::getCacheWebsiteAttributes($idSite), true)."\n\n");
+
             // Enable IP Anonymization
             $t->DEBUG_APPEND_URL = '&forceIpAnonymization=' . (int)$enable;
 
-- 
GitLab