ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\VObject\VCard21Test Class Reference

Assorted vcard 2.1 tests. More...

+ Inheritance diagram for Sabre\VObject\VCard21Test:
+ Collaboration diagram for Sabre\VObject\VCard21Test:

Public Member Functions

 testPropertyWithNoName ()
 
 testPropertyPadValueCount ()
 

Detailed Description

Assorted vcard 2.1 tests.

Definition at line 10 of file VCard21Test.php.

Member Function Documentation

◆ testPropertyPadValueCount()

Sabre\VObject\VCard21Test::testPropertyPadValueCount ( )

Definition at line 29 of file VCard21Test.php.

29 {
30
31 $input = <<<VCF
32BEGIN:VCARD
33VERSION:2.1
34N:Foo
35END:VCARD
36
37VCF;
38
40 $output = $vobj->serialize();
41
42 $expected = <<<VCF
43BEGIN:VCARD\r
44VERSION:2.1\r
45N:Foo;;;;\r
46END:VCARD\r
47
48VCF;
49
50
51 $this->assertEquals($expected, $output);
52
53 }
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
$vobj
Definition: rrulebench.php:21

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

+ Here is the call graph for this function:

◆ testPropertyWithNoName()

Sabre\VObject\VCard21Test::testPropertyWithNoName ( )

Definition at line 12 of file VCard21Test.php.

12 {
13
14 $input = <<<VCF
15BEGIN:VCARD\r
16VERSION:2.1\r
17EMAIL;HOME;WORK:evert@fruux.com\r
18END:VCARD\r
19
20VCF;
21
23 $output = $vobj->serialize();
24
25 $this->assertEquals($input, $output);
26
27 }

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

+ Here is the call graph for this function:

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