Lines Matching refs:validate
15 * @covers Cron\DayOfWeekField::validate
20 $this->assertTrue($f->validate('1'));
21 $this->assertTrue($f->validate('*'));
22 $this->assertTrue($f->validate('*/3,1,1-12'));
23 $this->assertTrue($f->validate('SUN-2'));
24 $this->assertFalse($f->validate('1.'));
74 * @covers Cron\DayOfWeekField::validate
79 $this->assertTrue($f->validate('MON#1'));
80 $this->assertTrue($f->validate('TUE#2'));
81 $this->assertTrue($f->validate('WED#3'));
82 $this->assertTrue($f->validate('THU#4'));
83 $this->assertTrue($f->validate('FRI#5'));
84 $this->assertTrue($f->validate('SAT#1'));
85 $this->assertTrue($f->validate('SUN#3'));
86 $this->assertTrue($f->validate('MON#1,MON#3'));
109 $this->assertFalse($f->validate('mon,'));
110 $this->assertFalse($f->validate('mon-'));
111 $this->assertFalse($f->validate('*/2,'));
112 $this->assertFalse($f->validate('-mon'));
113 $this->assertFalse($f->validate(',1'));
114 $this->assertFalse($f->validate('*-'));
115 $this->assertFalse($f->validate(',-'));