16 EMAIL;X-INTERN:foo@example.org
23 $this->assertInstanceOf(
'Sabre\\VObject\\Component\\VCard', $vcard);
25 $vcard = $vcard->serialize();
28 $converted->validate();
30 $this->assertTrue(isset($converted->EMAIL[
'X-INTERN']));
40 EMAIL;X-INTERN=:foo@example.org
46 $this->assertEquals($expected, str_replace(
"\r",
"", $vcard));
52 $vcard =
new Component\VCard([],
false);
53 $vcard->VERSION =
'2.1';
54 $vcard->PHOTO =
'random_stuff';
55 $vcard->PHOTO->add(null,
'BASE64');
56 $vcard->UID =
'foo-bar';
62 "PHOTO;BASE64:" . base64_encode(
'random_stuff'),
68 $this->assertEquals(implode(
"\r\n", $expected),
$result);
const VERSION
Full version number.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.