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.

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

29  {
30 
31  $input = <<<VCF
32 BEGIN:VCARD
33 VERSION:2.1
34 N:Foo
35 END:VCARD
36 
37 VCF;
38 
40  $output = $vobj->serialize();
41 
42  $expected = <<<VCF
43 BEGIN:VCARD\r
44 VERSION:2.1\r
45 N:Foo;;;;\r
46 END:VCARD\r
47 
48 VCF;
49 
50 
51  $this->assertEquals($expected, $output);
52 
53  }
if($argc< 3) $input
$vobj
Definition: rrulebench.php:21
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
+ Here is the call graph for this function:

◆ testPropertyWithNoName()

Sabre\VObject\VCard21Test::testPropertyWithNoName ( )

Definition at line 12 of file VCard21Test.php.

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

12  {
13 
14  $input = <<<VCF
15 BEGIN:VCARD\r
16 VERSION:2.1\r
17 EMAIL;HOME;WORK:evert@fruux.com\r
18 END:VCARD\r
19 
20 VCF;
21 
23  $output = $vobj->serialize();
24 
25  $this->assertEquals($input, $output);
26 
27  }
if($argc< 3) $input
$vobj
Definition: rrulebench.php:21
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
+ Here is the call graph for this function:

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