From 917ec780e616c7184a5e8b284bea11f29660f41c Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Wed, 9 Jul 2014 15:55:18 +0200
Subject: [PATCH] trying to prevent random build failure eg.
 https://travis-ci.org/piwik/piwik/jobs/29502366

---
 tests/PHPUnit/Core/DateTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/PHPUnit/Core/DateTest.php b/tests/PHPUnit/Core/DateTest.php
index 436b27ef59..f208e90c28 100644
--- a/tests/PHPUnit/Core/DateTest.php
+++ b/tests/PHPUnit/Core/DateTest.php
@@ -61,8 +61,8 @@ class DateTest extends PHPUnit_Framework_TestCase
         $this->assertEquals($dateExpected->getDatetime(), $date->getDatetime());
 
         // Congo is in UTC+1 all year long (no DST)
-        $date = Date::factory('now', 'Africa/Brazzaville');
         $dateExpected = Date::factory('now')->addHour(1);
+        $date = Date::factory('now', 'Africa/Brazzaville');
         $this->assertEquals($dateExpected->getDatetime(), $date->getDatetime());
 
         // yesterday same time in Congo is the same as today in Congo - 24 hours
-- 
GitLab