Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Szu committed Nov 7, 2023
1 parent 72c81a9 commit 1c1561f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/VObject/InvalidValueParamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,30 @@ public function testWorkaround()
$doc = Reader::read($event);
$this->assertEquals("LOCATION:EXAMPLE\r\n", $doc->VEVENT->LOCATION->serialize());
}

public function testInvalidValue()
{
$event = <<<ICS
BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
DTEND;TZID=Europe/Paris:20170530T220000
DTSTAMP:20230317T130521Z
DTSTART;TZID=Europe/Paris:20170530T200000
LAST-MODIFIED:20230316T155811Z
LOCATION;VALUE=ROUTE DE BOULOGNE, 32220 LOMBEZ
FRANCE
:Route de Boulogne\,
32220 Lombez\n France
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:AG MP3
UID:0171706E-00F4-4846-8B5F-7FBD474A90AC
END:VEVENT
END:VCALENDAR
ICS;

$doc = Reader::read($event);
$this->assertEquals("LOCATION:Route de Boulogne\, \r\n32220 Lombez\n France\r\n", $doc->VEVENT->LOCATION->serialize());
}
}

0 comments on commit 1c1561f

Please sign in to comment.