ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
EmptyValueIssueTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\VObject
;
4
5
use
PHPUnit\Framework\TestCase
;
6
12
class
EmptyValueIssueTest
extends
TestCase {
13
14
function
testDecodeValue
() {
15
16
$input
= <<<ICS
17
BEGIN:VCALENDAR
18
VERSION:2.0
19
BEGIN:VEVENT
20
DESCRIPTION:This
is
a
descpription\\nwith
a
linebreak
and
a
\\; \\,
and
:
21
END:VEVENT
22
END:VCALENDAR
23
ICS;
24
25
$vobj
=
Reader::read
(
$input
);
26
27
// Before this bug was fixed, getValue() would return nothing.
28
$this->assertEquals(
"This is a descpription\nwith a linebreak and a ; , and :"
,
$vobj
->VEVENT->DESCRIPTION->getValue());
29
30
}
31
32
}
Sabre\VObject
Definition:
mergeduplicates.php:4
Sabre\VObject\$input
if($argc< 3) $input
Definition:
mergeduplicates.php:35
a
is
Sabre\VObject\EmptyValueIssueTest\testDecodeValue
testDecodeValue()
Definition:
EmptyValueIssueTest.php:14
$vobj
$vobj
Definition:
rrulebench.php:21
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
and
TestCase
Sabre\VObject\EmptyValueIssueTest
This test is written for Issue 68:
Definition:
EmptyValueIssueTest.php:12
libs
composer
vendor
sabre
vobject
tests
VObject
EmptyValueIssueTest.php
Generated on Thu Jan 16 2025 19:01:53 for ILIAS by
1.8.13 (using
Doxyfile
)