File: SlashRTest.php

package info (click to toggle)
php-sabre-vobject 2.1.7-6.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 1,172 kB
  • sloc: php: 6,487; makefile: 17; xml: 16
file content (19 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Sabre\VObject;

/**
 * This issue was pointed out in Issue 55. \r should be stripped completely 
 * when encoding property values.
 */
class SlashRTest extends \PHPUnit\Framework\TestCase {

    function testEncode() {

        $prop = new \Sabre\VObject\Property('test', "abc\r\ndef");
        $this->assertEquals("TEST:abc\\ndef\r\n", $prop->serialize());

    }


}