diff --git a/src/Tests/Component/CalendarTest.php b/src/Tests/Component/CalendarTest.php index 60f5926..1c92888 100644 --- a/src/Tests/Component/CalendarTest.php +++ b/src/Tests/Component/CalendarTest.php @@ -91,6 +91,18 @@ public function testSetTimezone() } + /** + * Test line endings of description + */ + public function testDescriptionLineEndings() + { + $calendar = new Calendar(); + $event = $calendar->newEvent(); + $event->setDescription("Some description\r\nwith invalid line endings."); + $this->assertEquals("Some description\nwith invalid line endings.", $event->getProperty('DESCRIPTION')); + } + + /** * Get calendar test config *