Definition at line 7 of file EmptyParameterTest.php.
◆ testRead()
Sabre\VObject\EmptyParameterTest::testRead |
( |
| ) |
|
Definition at line 9 of file EmptyParameterTest.php.
References Sabre\VObject\$input, $version, Sabre\VObject\Reader\read(), Sabre\VObject\Document\VCARD30, and Sabre\VObject\Version\VERSION.
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));
const VERSION
Full version number.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
◆ testVCard21Parameter()
Sabre\VObject\EmptyParameterTest::testVCard21Parameter |
( |
| ) |
|
Definition at line 50 of file EmptyParameterTest.php.
References $result.
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);
The documentation for this class was generated from the following file: