|
|
@@ -104,4 +104,14 @@ class Zend_Validate_FloatTest extends PHPUnit_Framework_TestCase
|
|
|
{
|
|
|
$this->assertFalse($this->_validator->isValid(array(1 => 1)));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ZF-7489
|
|
|
+ */
|
|
|
+ public function testUsingApplicationLocale()
|
|
|
+ {
|
|
|
+ Zend_Registry::set('Zend_Locale', new Zend_Locale('de'));
|
|
|
+ $valid = new Zend_Validate_Float();
|
|
|
+ $this->assertTrue($valid->isValid('123,456'));
|
|
|
+ }
|
|
|
}
|