ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
VCard21Test.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\VObject;
4
5use PHPUnit\Framework\TestCase;
6
10class VCard21Test extends TestCase {
11
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 }
28
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 }
54}
An exception for terminatinating execution or to throw for unit testing.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
Assorted vcard 2.1 tests.
Definition: VCard21Test.php:10
foreach($paths as $path) if($argc< 3) $input
$vobj
Definition: rrulebench.php:21