summaryrefslogtreecommitdiff
path: root/vendor/eluceo/ical/tests/Eluceo/iCal/Property/Event/DescriptionTest.php
blob: 0ad16bccf29539e6a6e85de3d3ff4691a321428a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

namespace Eluceo\iCal\Property\Event;

class DescriptionTest extends \PHPUnit_Framework_TestCase
{
    public function testAllowsNewLines()
    {
        $testString = "New String \n New Line";
        $description = new Description($testString);

        $this->assertEquals(
            str_replace("\n", "\\n", $testString),
            $description->getEscapedValue()
        );
    }
}