1<?php 2 3namespace Sabre\VObject; 4 5/** 6 * This test is written for Issue 68: 7 * 8 * https://github.com/fruux/sabre-vobject/issues/68 9 */ 10class EmptyValueIssueTest extends \PHPUnit_Framework_TestCase { 11 12 function testDecodeValue() { 13 14 $input = <<<ICS 15BEGIN:VCALENDAR 16VERSION:2.0 17BEGIN:VEVENT 18DESCRIPTION:This is a descpription\\nwith a linebreak and a \\; \\, and : 19END:VEVENT 20END:VCALENDAR 21ICS; 22 23 $vobj = Reader::read($input); 24 25 // Before this bug was fixed, getValue() would return nothing. 26 $this->assertEquals("This is a descpription\nwith a linebreak and a ; , and :", $vobj->VEVENT->DESCRIPTION->getValue()); 27 28 } 29 30} 31 32