Exemple #1
0
 /**
  * @dataProvider provideTestFilter
  */
 public function testFilter($options, $raw, $filtered, $valid)
 {
     $int = new Float($options);
     $this->assertEquals($filtered, $int->filter($raw));
     $this->assertEquals($valid, $int->validate($raw));
 }
Exemple #2
0
 public function testValidateNullCode()
 {
     $this->assertEquals(Float::NULL_CODE, $this->object->validate($this->meta, null));
 }