public function testFloat() { $expect = array(1.0, 0.0, 0.0, 1.0, 42.0, 10.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1011970.0, 31121970.0, 12311970.0, 101070.0, 127.0, 255.255, 2.00108E+27); foreach ($this->tests as $index => $value) { $this->assertSame($expect[$index], Filter::float($value), "Test index: {$index}"); } $this->assertSame($expect, call_user_func_array('\\Filter\\Filter::float', $this->tests)); }