diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-09 23:36:23 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-09 23:36:23 +0200 |
commit | 0e3dea7111e66c3619c6fe989e79ff80fb18e2b3 (patch) | |
tree | 1c8778926a2e36f7a3e86273795ad0b5118b9355 | |
parent | b6b1bc5d09e1b4d4848ae99e0963217f92ad151c (diff) | |
download | nextcloud-server-0e3dea7111e66c3619c6fe989e79ff80fb18e2b3.tar.gz nextcloud-server-0e3dea7111e66c3619c6fe989e79ff80fb18e2b3.zip |
adding test case for a numeric value
-rw-r--r-- | tests/lib/l10n.php | 9 |
1 files 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)); + } } |