Example #1
0
 /**
  * @covers Cron\DayOfMonthField::validate
  */
 public function testValdatesField()
 {
     $f = new DayOfMonthField();
     $this->assertTrue($f->validate('1'));
     $this->assertTrue($f->validate('*'));
     $this->assertTrue($f->validate('*/3,1,1-12'));
     $this->assertTrue($f->validate('5W, L'));
 }
 public function validate($value)
 {
     return parent::validate($this->replaceHashValue($value));
 }