ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
EmptyValueIssueTest.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\VObject;
4 
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 
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 }
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
This test is written for Issue 68: