ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
EmptyValueIssueTest.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\VObject;
4
5use PHPUnit\Framework\TestCase;
6
12class EmptyValueIssueTest extends TestCase {
13
14 function testDecodeValue() {
15
16 $input = <<<ICS
17BEGIN:VCALENDAR
18VERSION:2.0
19BEGIN:VEVENT
20DESCRIPTION:This is a descpription\\nwith a linebreak and a \\; \\, and :
21END:VEVENT
22END:VCALENDAR
23ICS;
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}
An exception for terminatinating execution or to throw for unit testing.
This test is written for Issue 68:
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
foreach($paths as $path) if($argc< 3) $input
$vobj
Definition: rrulebench.php:21