◆ testArrayOfVcardObjectsWithValidBirthdays()
Sabre\VObject\BirthdayCalendarGeneratorTest::testArrayOfVcardObjectsWithValidBirthdays |
( |
| ) |
|
Definition at line 208 of file BirthdayCalendarGeneratorTest.php.
References Sabre\VObject\$input, $key, Sabre\VObject\$output, and Sabre\VObject\Reader\read().
210 $generator =
new BirthdayCalendarGenerator();
243 SUMMARY:Forrest Gump
's Birthday 244 DTSTART;VALUE=DATE:19850407 247 X-SABRE-BDAY;X-SABRE-VCARD-UID=foo;X-SABRE-VCARD-FN=Forrest Gump:BDAY 252 SUMMARY:John Doe's Birthday
253 DTSTART;VALUE=DATE:19820210
256 X-SABRE-BDAY;X-SABRE-VCARD-UID=bar;X-SABRE-VCARD-FN=John Doe:BDAY
261 $generator->setObjects(
$input);
262 $output = $generator->getResult();
264 $this->assertVObjectEqualsVObject(
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
◆ testArrayOfVcardStringsWithValidBirthdays()
Sabre\VObject\BirthdayCalendarGeneratorTest::testArrayOfVcardStringsWithValidBirthdays |
( |
| ) |
|
Definition at line 49 of file BirthdayCalendarGeneratorTest.php.
51 $generator =
new BirthdayCalendarGenerator();
80 SUMMARY:Forrest Gump
's Birthday 81 DTSTART;VALUE=DATE:19850407 84 X-SABRE-BDAY;X-SABRE-VCARD-UID=foo;X-SABRE-VCARD-FN=Forrest Gump:BDAY 89 SUMMARY:John Doe's Birthday
90 DTSTART;VALUE=DATE:19820210
93 X-SABRE-BDAY;X-SABRE-VCARD-UID=bar;X-SABRE-VCARD-FN=John Doe:BDAY
98 $generator->setObjects(
$input);
99 $output = $generator->getResult();
101 $this->assertVObjectEqualsVObject(
◆ testArrayOfVcardStringsWithValidBirthdaysViaConstructor()
Sabre\VObject\BirthdayCalendarGeneratorTest::testArrayOfVcardStringsWithValidBirthdaysViaConstructor |
( |
| ) |
|
Definition at line 108 of file BirthdayCalendarGeneratorTest.php.
132 $generator =
new BirthdayCalendarGenerator(
$input);
140 SUMMARY:Forrest Gump
's Birthday 141 DTSTART;VALUE=DATE:19850407 144 X-SABRE-BDAY;X-SABRE-VCARD-UID=foo;X-SABRE-VCARD-FN=Forrest Gump:BDAY 149 SUMMARY:John Doe's Birthday
150 DTSTART;VALUE=DATE:19820210
153 X-SABRE-BDAY;X-SABRE-VCARD-UID=bar;X-SABRE-VCARD-FN=John Doe:BDAY
158 $generator->setObjects(
$input);
159 $output = $generator->getResult();
161 $this->assertVObjectEqualsVObject(
◆ testBrokenVcardWithoutFN()
Sabre\VObject\BirthdayCalendarGeneratorTest::testBrokenVcardWithoutFN |
( |
| ) |
|
◆ testInvalidArgumentException()
Sabre\VObject\BirthdayCalendarGeneratorTest::testInvalidArgumentException |
( |
| ) |
|
◆ testInvalidArgumentExceptionForPartiallyInvalidArray()
Sabre\VObject\BirthdayCalendarGeneratorTest::testInvalidArgumentExceptionForPartiallyInvalidArray |
( |
| ) |
|
◆ testParseException()
Sabre\VObject\BirthdayCalendarGeneratorTest::testParseException |
( |
| ) |
|
◆ testVcardObjectWithValidBirthday()
Sabre\VObject\BirthdayCalendarGeneratorTest::testVcardObjectWithValidBirthday |
( |
| ) |
|
Definition at line 168 of file BirthdayCalendarGeneratorTest.php.
170 $generator =
new BirthdayCalendarGenerator();
189 SUMMARY:Forrest Gump
's Birthday 190 DTSTART;VALUE=DATE:19850407 193 X-SABRE-BDAY;X-SABRE-VCARD-UID=foo;X-SABRE-VCARD-FN=Forrest Gump:BDAY 198 $generator->setObjects($input); 199 $output = $generator->getResult(); 201 $this->assertVObjectEqualsVObject(
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
◆ testVcardStringWithEmptyBirthdayProperty()
Sabre\VObject\BirthdayCalendarGeneratorTest::testVcardStringWithEmptyBirthdayProperty |
( |
| ) |
|
◆ testVcardStringWithInvalidBirthday()
Sabre\VObject\BirthdayCalendarGeneratorTest::testVcardStringWithInvalidBirthday |
( |
| ) |
|
◆ testVcardStringWithNoBirthday()
Sabre\VObject\BirthdayCalendarGeneratorTest::testVcardStringWithNoBirthday |
( |
| ) |
|
◆ testVcardStringWithValidBirthday()
Sabre\VObject\BirthdayCalendarGeneratorTest::testVcardStringWithValidBirthday |
( |
| ) |
|
Definition at line 11 of file BirthdayCalendarGeneratorTest.php.
References Sabre\VObject\$input.
13 $generator =
new BirthdayCalendarGenerator();
30 SUMMARY:Forrest Gump
's Birthday 31 DTSTART;VALUE=DATE:19850407 34 X-SABRE-BDAY;X-SABRE-VCARD-UID=foo;X-SABRE-VCARD-FN=Forrest Gump:BDAY 39 $generator->setObjects($input); 40 $output = $generator->getResult(); 42 $this->assertVObjectEqualsVObject(
◆ testVcardStringWithValidBirthdayLocalized()
Sabre\VObject\BirthdayCalendarGeneratorTest::testVcardStringWithValidBirthdayLocalized |
( |
| ) |
|
Definition at line 404 of file BirthdayCalendarGeneratorTest.php.
References Sabre\VObject\$input, Sabre\VObject\$output, and $s.
406 $generator =
new BirthdayCalendarGenerator();
423 SUMMARY:Forrest Gump
's Geburtstag 424 DTSTART;VALUE=DATE:19850407 427 X-SABRE-BDAY;X-SABRE-VCARD-UID=foo;X-SABRE-VCARD-FN=Forrest Gump:BDAY 432 $generator->setObjects($input); 433 $generator->setFormat('%1
$s\
's Geburtstag');
434 $output = $generator->getResult();
436 $this->assertVObjectEqualsVObject(
◆ testVcardStringWithValidBirthdayWithoutYear()
Sabre\VObject\BirthdayCalendarGeneratorTest::testVcardStringWithValidBirthdayWithoutYear |
( |
| ) |
|
Definition at line 309 of file BirthdayCalendarGeneratorTest.php.
311 $generator =
new BirthdayCalendarGenerator();
328 SUMMARY:Forrest Gump
's Birthday 329 DTSTART;VALUE=DATE:20000407 332 X-SABRE-BDAY;X-SABRE-VCARD-UID=foo;X-SABRE-VCARD-FN=Forrest Gump;X-SABRE-OMIT-YEAR=2000:BDAY 337 $generator->setObjects($input); 338 $output = $generator->getResult(); 340 $this->assertVObjectEqualsVObject(
◆ testVcardStringWithValidBirthdayWithXAppleOmitYear()
Sabre\VObject\BirthdayCalendarGeneratorTest::testVcardStringWithValidBirthdayWithXAppleOmitYear |
( |
| ) |
|
Definition at line 271 of file BirthdayCalendarGeneratorTest.php.
References Sabre\VObject\$input.
273 $generator =
new BirthdayCalendarGenerator();
279 BDAY;X-APPLE-OMIT-YEAR=1604:1604-04-07
290 SUMMARY:Forrest Gump
's Birthday 291 DTSTART;VALUE=DATE:20000407 294 X-SABRE-BDAY;X-SABRE-VCARD-UID=foo;X-SABRE-VCARD-FN=Forrest Gump;X-SABRE-OMIT-YEAR=2000:BDAY 299 $generator->setObjects($input); 300 $output = $generator->getResult(); 302 $this->assertVObjectEqualsVObject(
The documentation for this class was generated from the following file: