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