From: Chuck Hagenbuch Date: Thu, 21 May 2009 14:35:35 +0000 (-0400) Subject: add a test to make sure that numerize doesn't butcher date strings X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=54e667667937db270d2fe545bf81ae595bdb37c3;p=horde.git add a test to make sure that numerize doesn't butcher date strings --- 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')); + } + }