public function testThatAStringValueIsNotValid() { $validator = new C3op_Util_ValidFloat(); $notAFloat = "one float point thirty-three"; $this->assertFalse($validator->isValid($notAFloat)); }
function isValid($value) { $nameValidator = new C3op_Util_ValidFloat(); return $nameValidator->isValid($value) && $value >= 0.0; }