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

This test is written for Issue 68: More...

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

Public Member Functions

 testDecodeValue ()
 

Detailed Description

This test is written for Issue 68:

https://github.com/fruux/sabre-vobject/issues/68

Definition at line 12 of file EmptyValueIssueTest.php.

Member Function Documentation

◆ testDecodeValue()

Sabre\VObject\EmptyValueIssueTest::testDecodeValue ( )

Definition at line 14 of file EmptyValueIssueTest.php.

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

14  {
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 
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  }
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: