public function testFloat() { $result = SimpleValidator::float("-1"); $this->assertEquals(true, $result); $result = SimpleValidator::float("+1.1"); $this->assertEquals(true, $result); $result = SimpleValidator::float("-1.2222"); $this->assertEquals(false, $result); $result = SimpleValidator::float("-100.2"); $this->assertEquals(true, $result); $result = SimpleValidator::float("-1009.2"); $this->assertEquals(true, $result); }