Example #1
0
 public function testToIcalFull()
 {
     $event = new Event('test-1', new \DateTime('2015-01-01T00:00:00'));
     $event->between(new \DateTime('2015-01-02'), new \DateTime('2015-01-03'));
     $event->created(new \DateTime('2015-01-01'));
     $event->description('A test description');
     $event->location('Greenwich');
     $event->summary('A test summary');
     $ical = $event->toIcal();
     $expected = file_get_contents(__DIR__ . '/../../mocks/component/event-full.ical');
     $this->assertEquals($expected, $ical);
 }