ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MaxInstancesTest.php
Go to the documentation of this file.
1<?php
2
4
5use DateTime;
6use PHPUnit\Framework\TestCase;
9
10class MaxInstancesTest extends TestCase {
11
16
17 $input = <<<ICS
18BEGIN:VCALENDAR
19VERSION:2.0
20BEGIN:VEVENT
21UID:foobar
22DTSTART:20140803T120000Z
23RRULE:FREQ=WEEKLY
24SUMMARY:Original
25END:VEVENT
26END:VCALENDAR
27ICS;
28
31 try {
32
34 $vcal->expand(new DateTime('2014-08-01'), new DateTime('2014-09-01'));
35
36 } finally {
38 }
39
40 }
41
42}
An exception for terminatinating execution or to throw for unit testing.
iCalendar/vCard/jCal/jCard/xCal/xCard reader object.
Definition: Reader.php:15
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
testExceedMaxRecurrences()
@expectedException \Sabre\VObject\Recur\MaxInstancesExceededException
This class provides a list of global defaults for vobject.
Definition: Settings.php:18
static $maxRecurrences
The maximum number of recurrences that will be generated.
Definition: Settings.php:54
foreach($paths as $path) if($argc< 3) $input