summaryrefslogtreecommitdiff
path: root/tests/unit/Util/TSimpleDateFormatterTest.php
diff options
context:
space:
mode:
authorctrlaltca <>2013-01-06 18:09:15 +0000
committerctrlaltca <>2013-01-06 18:09:15 +0000
commit11f2517f24aca0580fec7d3560108458da787342 (patch)
tree85ae5c74c23dce62b68b2c3505345a486513c3e9 /tests/unit/Util/TSimpleDateFormatterTest.php
parent37bd6206f9765a5ddfa8dc04b4e13e6bb268d0db (diff)
backported r3233, r3234 to trunk/
Diffstat (limited to 'tests/unit/Util/TSimpleDateFormatterTest.php')
-rw-r--r--tests/unit/Util/TSimpleDateFormatterTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/Util/TSimpleDateFormatterTest.php b/tests/unit/Util/TSimpleDateFormatterTest.php
index 13ad25a9..bfda4712 100644
--- a/tests/unit/Util/TSimpleDateFormatterTest.php
+++ b/tests/unit/Util/TSimpleDateFormatterTest.php
@@ -45,7 +45,7 @@ class TSimpleDateFormatterTest extends PHPUnit_Framework_TestCase {
public function testMissingYearPattern() {
$formatter = new TSimpleDateFormatter("MM/dd");
- self::assertEquals("2008-10-22", date('Y-m-d', $formatter->parse("10/22")));
+ self::assertEquals(date("Y-10-22"), date('Y-m-d', $formatter->parse("10/22")));
}
public function testDayMonthYearOrdering() {