From 0e3dea7111e66c3619c6fe989e79ff80fb18e2b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu>
Date: Fri, 9 Aug 2013 23:36:23 +0200
Subject: [PATCH] adding test case for a numeric value

---
 tests/lib/l10n.php | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/lib/l10n.php b/tests/lib/l10n.php
index bd5984add15..12eac818f84 100644
--- a/tests/lib/l10n.php
+++ b/tests/lib/l10n.php
@@ -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));
+	}
 }
-- 
GitLab