ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\VObject\Property\BooleanTest Class Reference
+ Inheritance diagram for Sabre\VObject\Property\BooleanTest:
+ Collaboration diagram for Sabre\VObject\Property\BooleanTest:

Public Member Functions

 testMimeDir ()
 

Detailed Description

Definition at line 8 of file BooleanTest.php.

Member Function Documentation

◆ testMimeDir()

Sabre\VObject\Property\BooleanTest::testMimeDir ( )

Definition at line 10 of file BooleanTest.php.

10 {
11
12 $input = "BEGIN:VCARD\r\nX-AWESOME;VALUE=BOOLEAN:TRUE\r\nX-SUCKS;VALUE=BOOLEAN:FALSE\r\nEND:VCARD\r\n";
13
15 $this->assertTrue($vcard->{'X-AWESOME'}->getValue());
16 $this->assertFalse($vcard->{'X-SUCKS'}->getValue());
17
18 $this->assertEquals('BOOLEAN', $vcard->{'X-AWESOME'}->getValueType());
19 $this->assertEquals($input, $vcard->serialize());
20
21 }
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
foreach($paths as $path) if($argc< 3) $input

References Sabre\VObject\$input, and Sabre\VObject\Reader\read().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: