assertFalse($rule->validate(1)); $this->assertFalse($rule->validate(2)); $this->assertFalse($rule->validate('11')); $this->assertTrue($rule->validate(3)); $this->assertTrue($rule->validate(5)); $this->assertTrue($rule->validate(10)); $this->assertFalse($rule->validate('AS')); $this->assertFalse($rule->validate('TestContentThatCounts')); $this->assertTrue($rule->validate('TESTING')); $rule = new Between('2042-01-01', '2042-10-10'); $this->assertFalse($rule->validate('2000-01-01')); $this->assertFalse($rule->validate('3000-01-01')); $this->assertFalse($rule->validate('2041-12-31')); $this->assertFalse($rule->validate('2042-10-11')); $this->assertTrue($rule->validate('2042-05-11')); $this->assertTrue($rule->validate('2042-01-01')); $this->assertTrue($rule->validate('2042-01-02')); $this->assertTrue($rule->validate('2042-10-09')); $this->assertTrue($rule->validate('2042-10-10')); } }