Definition at line 8 of file BooleanTest.php.
◆ testMimeDir()
Sabre\VObject\Property\BooleanTest::testMimeDir |
( |
| ) |
|
Definition at line 10 of file BooleanTest.php.
References Sabre\VObject\$input, and Sabre\VObject\Reader\read().
12 $input =
"BEGIN:VCARD\r\nX-AWESOME;VALUE=BOOLEAN:TRUE\r\nX-SUCKS;VALUE=BOOLEAN:FALSE\r\nEND:VCARD\r\n";
15 $this->assertTrue($vcard->{
'X-AWESOME'}->getValue());
16 $this->assertFalse($vcard->{
'X-SUCKS'}->getValue());
18 $this->assertEquals(
'BOOLEAN', $vcard->{
'X-AWESOME'}->getValueType());
19 $this->assertEquals(
$input, $vcard->serialize());
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
The documentation for this class was generated from the following file: