From 8cd8c351250e7e0aa564a7d8b2dd43d119d7cd9e Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 7 Nov 2015 15:37:06 +0000 Subject: [PATCH] Fixes --- app/Dates/DateFactory.php | 4 ++-- tests/Api/MetricPointTest.php | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/Dates/DateFactory.php b/app/Dates/DateFactory.php index 0df460b59..17c276f5a 100644 --- a/app/Dates/DateFactory.php +++ b/app/Dates/DateFactory.php @@ -9,9 +9,9 @@ * file that was distributed with this source code. */ -namespace CachetHQ\Cachet\Date; +namespace CachetHQ\Cachet\Dates; -use Jenssegers\Date\Date +use Jenssegers\Date\Date; class DateFactory { diff --git a/tests/Api/MetricPointTest.php b/tests/Api/MetricPointTest.php index 39569d7ae..29b209192 100644 --- a/tests/Api/MetricPointTest.php +++ b/tests/Api/MetricPointTest.php @@ -11,8 +11,8 @@ namespace CachetHQ\Tests\Cachet\Api; -use Carbon\Carbon; use CachetHQ\Tests\Cachet\AbstractTestCase; +use Carbon\Carbon; use Illuminate\Foundation\Testing\DatabaseMigrations; class MetricPointTest extends AbstractTestCase @@ -75,6 +75,10 @@ class MetricPointTest extends AbstractTestCase public function testPostMetricPointTimestampTimezone() { + if (defined('HHVM_VERSION')) { + $this->markTestSkipped('Timezones are broken on HHVM.'); + } + $this->beUser(); $timezone = 'America/Mexico_City';