summaryrefslogtreecommitdiff
path: root/tests/unit/Util/TSimpleDateFormatterTest.php
diff options
context:
space:
mode:
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() {