public function testValidateValueNot() { $val = new RangeValidator(['range' => range(1, 10, 1), 'not' => true]); $this->assertFalse($val->validate(1)); $this->assertTrue($val->validate(0)); $this->assertTrue($val->validate(11)); $this->assertTrue($val->validate(5.5)); $this->assertFalse($val->validate(10)); $this->assertFalse($val->validate("10")); $this->assertFalse($val->validate("5")); }