/**
  * @covers Cron\DayOfWeekField::isSatisfiedBy
  */
 public function testHandlesZeroAndSevenDayOfTheWeekValues()
 {
     $f = new DayOfWeekField();
     $this->assertTrue($f->isSatisfiedBy(new DateTime('2011-09-04 00:00:00'), '0-2'));
     $this->assertTrue($f->isSatisfiedBy(new DateTime('2011-09-04 00:00:00'), '6-0'));
     $this->assertTrue($f->isSatisfiedBy(new DateTime('2014-04-20 00:00:00'), 'SUN'));
     $this->assertTrue($f->isSatisfiedBy(new DateTime('2014-04-20 00:00:00'), 'SUN#3'));
     $this->assertTrue($f->isSatisfiedBy(new DateTime('2014-04-20 00:00:00'), '0#3'));
     $this->assertTrue($f->isSatisfiedBy(new DateTime('2014-04-20 00:00:00'), '7#3'));
 }
 public function isSatisfiedBy(\DateTime $date, $value)
 {
     $value = $this->convertLiterals($value);
     return parent::isSatisfiedBy($date, $this->replaceHashValue($value));
 }