/** * @ZF-8919 */ public function testPhpLocaleEnStringType() { $valid = new Validator\Float('en_US'); $this->assertTrue($valid->isValid('1.3')); $this->assertTrue($valid->isValid('1000.3')); $this->assertTrue($valid->isValid('1,000.3')); $this->assertFalse($valid->isValid('1,3')); $this->assertFalse($valid->isValid('1000,3')); $this->assertFalse($valid->isValid('1.000,3')); }
/** * @ZF-7987 */ public function testPhpLocaleDeFloatType() { setlocale(LC_ALL, 'de'); $valid = new Validator\Float(); $this->assertTrue($valid->isValid(10.5)); }