Пример #1
0
 /**
  * @covers Cron\MonthField::increment
  */
 public function testDecrementsYearAsNeeded()
 {
     $f = new MonthField();
     $d = new DateTime('2011-01-15 00:00:00');
     $f->increment($d, true);
     $this->assertEquals('2010-12-31 23:59:00', $d->format('Y-m-d H:i:s'));
 }
 public function validate($value)
 {
     return parent::validate($this->replaceHashValue($value));
 }