]> source.dussan.org Git - nextcloud-server.git/commitdiff
adding test case for a numeric value
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 9 Aug 2013 21:36:23 +0000 (23:36 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 9 Aug 2013 21:36:23 +0000 (23:36 +0200)
tests/lib/l10n.php

index bd5984add15cc1fafec43c2f1b66f480c7ead99e..12eac818f84c5c7520c122c122dd2a23343e2282 100644 (file)
@@ -53,10 +53,15 @@ class Test_L10n extends PHPUnit_Framework_TestCase {
        }
 
        /**
-       * Issue #4360: Do not call strtotime() on numeric strings.
-       */
+        * Issue #4360: Do not call strtotime() on numeric strings.
+        */
        public function testNumericStringToDateTime() {
                $l = new OC_L10N('test');
                $this->assertSame('February 13, 2009 23:31', $l->l('datetime', '1234567890'));
        }
+
+       public function testNumericToDateTime() {
+               $l = new OC_L10N('test');
+               $this->assertSame('February 13, 2009 23:31', $l->l('datetime', 1234567890));
+       }
 }