summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/Util/TSimpleDateFormatterTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/Util/TSimpleDateFormatterTest.php b/tests/unit/Util/TSimpleDateFormatterTest.php
index ca9f6809..13ad25a9 100644
--- a/tests/unit/Util/TSimpleDateFormatterTest.php
+++ b/tests/unit/Util/TSimpleDateFormatterTest.php
@@ -43,6 +43,11 @@ class TSimpleDateFormatterTest extends PHPUnit_Framework_TestCase {
self::assertEquals("2008-01-01", date('Y-m-d', $formatter->parse("2008")));
}
+ public function testMissingYearPattern() {
+ $formatter = new TSimpleDateFormatter("MM/dd");
+ self::assertEquals("2008-10-22", date('Y-m-d', $formatter->parse("10/22")));
+ }
+
public function testDayMonthYearOrdering() {
throw new PHPUnit_Framework_IncompleteTestError();
}