9 use \Sabre\VObject\PHPUnitAssertions;
17 FN;CHARSET=UTF-8:Steve
18 TEL;TYPE=PREF,HOME:+1 555 666 777
19 ITEM1.TEL:+1 444 555 666
20 ITEM1.X-ABLABEL:CustomLabel
21 PHOTO;ENCODING=b;TYPE=JPEG,HOME:Zm9v
22 PHOTO;ENCODING=b;TYPE=GIF:Zm9v
23 PHOTO;X-PARAM=FOO;ENCODING=b;TYPE=PNG:Zm9v
33 TEL;PREF=1;TYPE=HOME:+1 555 666 777
34 ITEM1.TEL:+1 444 555 666
35 ITEM1.X-ABLABEL:CustomLabel
36 PHOTO;TYPE=HOME:
data:image/jpeg;base64,Zm9v
37 PHOTO:
data:image/gif;base64,Zm9v
38 PHOTO;X-PARAM=FOO:
data:image/png;base64,Zm9v
47 $this->assertVObjectEqualsVObject(
60 TEL;PREF=1;TYPE=HOME:+1 555 666 777
61 PHOTO:
data:image/jpeg;base64,Zm9v
62 PHOTO:
data:image/gif;base64,Zm9v
63 PHOTO;X-PARAM=FOO:
data:image/png;base64,Zm9v
73 TEL;PREF=1;TYPE=HOME:+1 555 666 777
74 PHOTO:
data:image/jpeg;base64,Zm9v
75 PHOTO:
data:image/gif;base64,Zm9v
76 PHOTO;X-PARAM=FOO:
data:image/png;base64,Zm9v
85 $this->assertVObjectEqualsVObject(
99 TEL;HOME;VOICE:555-12345-345
100 ADR;HOME:;;100 Street Lane;Saubel Beach;ON;H0H0H0
101 LABEL;HOME;ENCODING=QUOTED-PRINTABLE:100 Street Lane=0
D=0ASaubel Beach,
113 TEL;TYPE=HOME,VOICE:555-12345-345
114 ADR;TYPE=HOME:;;100 Street Lane;Saubel Beach;ON;H0H0H0;
124 $this->assertVObjectEqualsVObject(
137 FN;CHARSET=UTF-8:Steve
138 TEL;TYPE=PREF,HOME:+1 555 666 777
139 PHOTO;ENCODING=b;TYPE=JPEG:Zm9v
140 PHOTO;ENCODING=b;TYPE=GIF:Zm9v
141 PHOTO;X-PARAM=FOO;ENCODING=b;TYPE=PNG:Zm9v
142 PHOTO;VALUE=URI:
http:
151 FN;CHARSET=UTF-8:Steve
152 TEL;TYPE=PREF,HOME:+1 555 666 777
153 PHOTO;ENCODING=b;TYPE=JPEG:Zm9v
154 PHOTO;ENCODING=b;TYPE=GIF:Zm9v
155 PHOTO;X-PARAM=FOO;ENCODING=b;TYPE=PNG:Zm9v
156 PHOTO;VALUE=URI:
http:
164 $this->assertVObjectEqualsVObject(
178 TEL;PREF=1;TYPE=HOME:+1 555 666 777
179 PHOTO:
data:image/jpeg;base64,Zm9v
180 PHOTO:
data:image/gif,foo
181 PHOTO;X-PARAM=FOO:
data:image/png;base64,Zm9v
192 TEL;TYPE=PREF,HOME:+1 555 666 777
193 PHOTO;ENCODING=b;TYPE=JPEG:Zm9v
194 PHOTO;ENCODING=b;TYPE=GIF:Zm9v
195 PHOTO;ENCODING=b;TYPE=PNG;X-PARAM=FOO:Zm9v
196 PHOTO;VALUE=URI:
http:
205 $this->assertVObjectEqualsVObject(
218 X-ADDRESSBOOKSERVER-KIND:GROUP
234 $this->assertVObjectEqualsVObject(
243 X-ADDRESSBOOKSERVER-KIND:GROUP
251 $this->assertVObjectEqualsVObject(
264 BDAY;X-APPLE-OMIT-YEAR=1604:1604-04-16
280 $this->assertVObjectEqualsVObject(
289 BDAY;X-APPLE-OMIT-YEAR=1604:1604-04-16
297 $this->assertVObjectEqualsVObject(
313 FN;CHARSET=UTF-8:Steve
314 TEL;TYPE=PREF,HOME:+1 555 666 777
315 ITEM1.TEL:+1 444 555 666
316 ITEM1.X-ABLABEL:CustomLabel
317 PHOTO;ENCODING=b;TYPE=JPEG,HOME:Zm9v
318 PHOTO;ENCODING=b;TYPE=GIF:Zm9v
319 PHOTO;X-PARAM=FOO;ENCODING=b;TYPE=PNG:Zm9v
320 PHOTO;VALUE=URI:
http:
370 $this->assertVObjectEqualsVObject(
386 $this->assertVObjectEqualsVObject(
398 ITEM1.ANNIVERSARY:20081210
406 ITEM1.X-ABDATE;VALUE=DATE-AND-OR-TIME:20081210
407 ITEM1.X-ABLABEL:_$!<Anniversary>!$_
408 ITEM1.X-ANNIVERSARY;VALUE=DATE-AND-OR-TIME:20081210
416 $this->assertVObjectEqualsVObject(
433 $this->assertVObjectEqualsVObject(
445 ITEM1.ANNIVERSARY:20081210
446 ITEM2.ANNIVERSARY:20091210
447 ITEM3.ANNIVERSARY:20101210
455 ITEM1.X-ABDATE;VALUE=DATE-AND-OR-TIME:20081210
456 ITEM1.X-ABLABEL:_$!<Anniversary>!$_
457 ITEM1.X-ANNIVERSARY;VALUE=DATE-AND-OR-TIME:20081210
458 ITEM2.X-ABDATE;VALUE=DATE-AND-OR-TIME:20091210
459 ITEM2.X-ABLABEL:_$!<Anniversary>!$_
460 ITEM2.X-ANNIVERSARY;VALUE=DATE-AND-OR-TIME:20091210
461 ITEM3.X-ABDATE;VALUE=DATE-AND-OR-TIME:20101210
462 ITEM3.X-ABLABEL:_$!<Anniversary>!$_
463 ITEM3.X-ANNIVERSARY;VALUE=DATE-AND-OR-TIME:20101210
471 $this->assertVObjectEqualsVObject(
488 $this->assertVObjectEqualsVObject(
503 item1.X-ABDATE;type=pref:2008-12-11
510 $this->assertInstanceOf(
'Sabre\\VObject\\Component\\VCard', $vcard);
512 $vcard = $vcard->serialize();
515 $converted->validate();
526 ITEM1.X-ABDATE;PREF=1:2008-12-11
531 $this->assertEquals($expected, str_replace(
"\r",
"", $vcard));
const VERSION
Full version number.
testConvertIndividualCard()
static http()
Fetches the global http state from ILIAS.
testUnknownTargetVCardVersion()
InvalidArgumentException
testUnknownSourceVCardVersion()
InvalidArgumentException
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
testMultipleAnniversaries()