summaryrefslogtreecommitdiff
path: root/tests/unit/Util
diff options
context:
space:
mode:
authorknut <>2008-08-05 18:02:53 +0000
committerknut <>2008-08-05 18:02:53 +0000
commit02014e728e09fe672aabb946176492b9ed51606d (patch)
tree22c6baaeeaa8bdb8f9445290604f4f801758fafd /tests/unit/Util
parent5cb8bf3a2d0f7d7b9b0b5907a80aee85a8c6f2d9 (diff)
fixed #897
Diffstat (limited to 'tests/unit/Util')
-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();
}