summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-14 12:18:07 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-14 12:18:07 +0200
commit0ddff314d619e5d24bdf07f3da33c779f5b6e2c0 (patch)
tree4d1cc2d095eb7e632f3b89e4d4263c5097e6d0f3 /tests/codeigniter
parente1c8ee76f4756442094106320d9577c2c7595959 (diff)
test_now_gmt() -> test_now_utc()
Diffstat (limited to 'tests/codeigniter')
-rw-r--r--tests/codeigniter/helpers/date_helper_test.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/codeigniter/helpers/date_helper_test.php b/tests/codeigniter/helpers/date_helper_test.php
index bcb1477bc..242935116 100644
--- a/tests/codeigniter/helpers/date_helper_test.php
+++ b/tests/codeigniter/helpers/date_helper_test.php
@@ -33,7 +33,7 @@ class Date_helper_test extends CI_TestCase {
// ------------------------------------------------------------------------
- public function test_now_gmt()
+ public function test_now_utc()
{
/*
@@ -41,18 +41,17 @@ class Date_helper_test extends CI_TestCase {
$config = $this->getMock('CI_Config');
$config->expects($this->any())
->method('item')
- ->will($this->returnValue('gmt'));
+ ->will($this->returnValue('UTC'));
// Add the stub to our stdClass
$this->ci_instance_var('config', $config);
*/
- $this->ci_set_config('time_reference', 'gmt');
+ $this->ci_set_config('time_reference', 'UTC');
- $t = time();
$this->assertEquals(
- mktime(gmdate('H', $t), gmdate('i', $t), gmdate('s', $t), gmdate('m', $t), gmdate('d', $t), gmdate('Y', $t)),
+ gmmktime(date('H'), date('i'), date('s'), date('m'), date('d'), date('Y')),
now()
);
}