Mercurial > hg > rc1
annotate vendor/sabre/vobject/tests/VObject/SlashRTest.php @ 35:05c4c32948af
.hgignore: add vendor tree
composer.json: new packages
plugins/thunderbird_labels/thunderbird_labels.php: change hook and RFC822 use wrt whitelisting to avoid deprecated stuff
index.php: commented debugging hooks
others: new releases of vendor packages?
| author | Charlie Root |
|---|---|
| date | Thu, 30 Aug 2018 16:21:59 -0400 |
| parents | 430dbd5346f7 |
| children |
| rev | line source |
|---|---|
| 7 | 1 <?php |
| 2 | |
| 3 namespace Sabre\VObject; | |
| 4 | |
| 5 /** | |
| 6 * This issue was pointed out in Issue 55. \r should be stripped completely | |
| 7 * when encoding property values. | |
| 8 */ | |
| 9 class SlashRTest extends \PHPUnit_Framework_TestCase { | |
| 10 | |
| 11 function testEncode() { | |
| 12 | |
| 13 $vcal = new Component\VCalendar(); | |
| 14 $prop = $vcal->add('test', "abc\r\ndef"); | |
| 15 $this->assertEquals("TEST:abc\\ndef\r\n", $prop->serialize()); | |
| 16 | |
| 17 } | |
| 18 | |
| 19 | |
| 20 } |
