/** * @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)); }
public function testValidateNullCode() { $this->assertEquals(Float::NULL_CODE, $this->object->validate($this->meta, null)); }