summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/helpers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-07-02 15:47:12 +0200
committerAndrey Andreev <narf@bofh.bg>2012-07-02 15:47:12 +0200
commit5211c094c930d69d52539591b306c293c99689ad (patch)
tree12d3fb32b4724c0bcad20a79d9724f0906b752ad /tests/codeigniter/helpers
parentc02e7c5d929d17e3448b944e2279a4c6dc338614 (diff)
Fix standard_date() tests
Diffstat (limited to 'tests/codeigniter/helpers')
-rw-r--r--tests/codeigniter/helpers/date_helper_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/codeigniter/helpers/date_helper_test.php b/tests/codeigniter/helpers/date_helper_test.php
index 4e01b1aa3..eaf4cf8a5 100644
--- a/tests/codeigniter/helpers/date_helper_test.php
+++ b/tests/codeigniter/helpers/date_helper_test.php
@@ -79,7 +79,7 @@ class Date_helper_test extends CI_TestCase {
public function test_standard_date_atom()
{
$this->assertEquals(
- date("Y-m-d\TH:i:sO", $this->time),
+ date('Y-m-d\TH:i:sP', $this->time),
standard_date('DATE_ATOM', $this->time)
);
}
@@ -99,7 +99,7 @@ class Date_helper_test extends CI_TestCase {
public function test_standard_date_iso8601()
{
$this->assertEquals(
- date("Y-m-d\TH:i:sO", $this->time),
+ date('Y-m-d\TH:i:sP', $this->time),
standard_date('DATE_ISO8601', $this->time)
);
}
@@ -139,7 +139,7 @@ class Date_helper_test extends CI_TestCase {
public function test_standard_date_rfc2822()
{
$this->assertEquals(
- date('D, d M Y H:i:s O', $this->time),
+ date('r', $this->time),
standard_date('DATE_RFC2822', $this->time)
);
}
@@ -159,7 +159,7 @@ class Date_helper_test extends CI_TestCase {
public function test_standard_date_w3c()
{
$this->assertEquals(
- date("Y-m-d\TH:i:sO", $this->time),
+ date('Y-m-d\TH:i:sP', $this->time),
standard_date('DATE_W3C', $this->time)
);
}