예제 #1
0
 public function testResults()
 {
     $parser = new ICalSimpleParser($this->calendarFile);
     $dates = $parser->extract();
     $this->assertEquals(in_array('2015-12-25', $dates), true);
     $this->assertEquals(in_array('2015-12-01', $dates), false);
 }
예제 #2
0
 public function __construct($date)
 {
     $this->endDate = $date;
     $iCalParser = new ICalSimpleParser(__DIR__ . '/../../../app/Resources/calendar.ics');
     $this->holidays = $iCalParser->extract();
 }