From 54e667667937db270d2fe545bf81ae595bdb37c3 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Thu, 21 May 2009 10:35:35 -0400 Subject: [PATCH] add a test to make sure that numerize doesn't butcher date strings --- .../Date_Parser/test/Horde/Support/Numerizer/Locale/BaseTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/Date_Parser/test/Horde/Support/Numerizer/Locale/BaseTest.php b/framework/Date_Parser/test/Horde/Support/Numerizer/Locale/BaseTest.php index 0643e33d4..509f5dd24 100644 --- a/framework/Date_Parser/test/Horde/Support/Numerizer/Locale/BaseTest.php +++ b/framework/Date_Parser/test/Horde/Support/Numerizer/Locale/BaseTest.php @@ -59,4 +59,10 @@ class Horde_Support_Numerizer_Locale_BaseTest extends PHPUnit_Framework_TestCase } } + public function testLeavesDatesAlone() + { + $numerizer = Horde_Support_Numerizer::factory(); + $this->assertEquals('2006-08-20 03:00', $numerizer->numerize('2006-08-20 03:00')); + } + } -- 2.11.0