Blame view

sources/3rdparty/sabre/vobject/tests/Sabre/VObject/SlashRTest.php 386 Bytes
6d9380f96   Cédric Dupont   Update sources OC...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  <?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
  def");
          $this->assertEquals("TEST:abc\
  def\r
  ", $prop->serialize());
  
      }
  
  
  }