ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
VCard21Test.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\VObject
;
4
5
use
PHPUnit\Framework\TestCase
;
6
10
class
VCard21Test
extends
TestCase {
11
12
function
testPropertyWithNoName
() {
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
22
$vobj
=
Reader::read
(
$input
);
23
$output
=
$vobj
->serialize();
24
25
$this->assertEquals(
$input
,
$output
);
26
27
}
28
29
function
testPropertyPadValueCount
() {
30
31
$input
= <<<VCF
32
BEGIN:VCARD
33
VERSION:2.1
34
N:Foo
35
END:VCARD
36
37
VCF;
38
39
$vobj
=
Reader::read
(
$input
);
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
}
54
}
Sabre\VObject\VCard21Test\testPropertyWithNoName
testPropertyWithNoName()
Definition:
VCard21Test.php:12
Sabre\VObject
Definition:
mergeduplicates.php:4
Sabre\VObject\$output
$output
Definition:
mergeduplicates.php:36
Sabre\VObject\$input
if($argc< 3) $input
Definition:
mergeduplicates.php:35
Sabre\VObject\VCard21Test\testPropertyPadValueCount
testPropertyPadValueCount()
Definition:
VCard21Test.php:29
$vobj
$vobj
Definition:
rrulebench.php:21
Sabre\VObject\VCard21Test
Assorted vcard 2.1 tests.
Definition:
VCard21Test.php:10
Sabre\VObject\Reader\read
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition:
Reader.php:42
php
TestCase
libs
composer
vendor
sabre
vobject
tests
VObject
VCard21Test.php
Generated on Thu Feb 27 2025 19:01:31 for ILIAS by
1.8.13 (using
Doxyfile
)