adding test case for a numeric value

This commit is contained in:
Thomas Müller 2013-08-09 23:36:23 +02:00
parent b6b1bc5d09
commit 0e3dea7111
1 changed files with 7 additions and 2 deletions

View 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));
}
}