Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Unit/DateTest.php')
-rw-r--r--tests/PHPUnit/Unit/DateTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/PHPUnit/Unit/DateTest.php b/tests/PHPUnit/Unit/DateTest.php
index 8d29aa5f12..dadbba6461 100644
--- a/tests/PHPUnit/Unit/DateTest.php
+++ b/tests/PHPUnit/Unit/DateTest.php
@@ -92,21 +92,21 @@ class DateTest extends \PHPUnit_Framework_TestCase
public function test_getHourInUTC()
{
$date = Date::factory('today', 'UTC');
- $hour = $date->getHourInUTC();
+ $hour = $date->getHourUTC();
$this->assertSame('0', $hour); // hour is already in UTC
$date = Date::factory('today', 'UTC+10');
- $hour = $date->getHourInUTC();
+ $hour = $date->getHourUTC();
$this->assertSame('10', $hour);
$date = Date::factory('today');
$date = $date->setTime('14:00:00')->setTimezone('UTC+10'); // 14-10 = 4
- $hour = $date->getHourInUTC();
+ $hour = $date->getHourUTC();
$this->assertSame('4', $hour);
$date = Date::factory('today');
$date = $date->setTime('14:00:00')->setTimezone('UTC-5'); // 14+5 = 19
- $hour = $date->getHourInUTC();
+ $hour = $date->getHourUTC();
$this->assertSame('19', $hour);
}