Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
32 lines
654 B
PHP
32 lines
654 B
PHP
<?php
|
|
|
|
namespace Sabre\VObject;
|
|
|
|
/**
|
|
* This test is written for Issue 68:
|
|
*
|
|
* https://github.com/fruux/sabre-vobject/issues/68
|
|
*/
|
|
class EmptyValueIssueTest extends \PHPUnit_Framework_TestCase {
|
|
|
|
function testDecodeValue() {
|
|
|
|
$input = <<<ICS
|
|
BEGIN:VCALENDAR
|
|
VERSION:2.0
|
|
BEGIN:VEVENT
|
|
DESCRIPTION:This is a descpription\\nwith a linebreak and a \\; \\, and :
|
|
END:VEVENT
|
|
END:VCALENDAR
|
|
ICS;
|
|
|
|
$vobj = Reader::read($input);
|
|
|
|
// Before this bug was fixed, getValue() would return nothing.
|
|
$this->assertEquals("This is a descpription\nwith a linebreak and a ; , and :", $vobj->VEVENT->DESCRIPTION->getValue());
|
|
|
|
}
|
|
|
|
}
|
|
|