diff options
author | ctrlaltca <> | 2013-01-06 17:27:51 +0000 |
---|---|---|
committer | ctrlaltca <> | 2013-01-06 17:27:51 +0000 |
commit | 55eb721567c84d0a30914f76615691990d005ac3 (patch) | |
tree | 14b283e6f7980e3c45f6109e90fd0fd0f280c8c0 /tests/unit/Util/TSimpleDateFormatterTest.php | |
parent | 1f6d9caf8397416747aa2105b2aac352cdf92fe3 (diff) |
fixed old/broken unit tests; update documentation
Diffstat (limited to 'tests/unit/Util/TSimpleDateFormatterTest.php')
-rw-r--r-- | tests/unit/Util/TSimpleDateFormatterTest.php | 2 |
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() { |