File tree Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -17,21 +17,11 @@ class LinefoldingTest extends \PHPUnit\Framework\TestCase
1717 */
1818 public function testLineFolding () : void
1919 {
20- $ sample = <<<EOS
21- BEGIN:VCALENDAR
22- PRODID;X-RICAL-TZSOURCE=TZINFO:-//Airbnb Inc//Hosting Calendar 0.8.8//EN
23- CALSCALE:GREGORIAN
24- VERSION:2.0
25- BEGIN:VEVENT
26- DTEND;VALUE=DATE:20230611
27- DTSTART;VALUE=DATE:20230514
28- 29- DESCRIPTION:Reservation URL: https://www.airbnb.com/hosting/reservations/
30- details/xxx\\nPhone Number (Last 4 Digits): 0000
31- SUMMARY:Reserved
32- END:VEVENT
33- END:VCALENDAR
34- EOS ;
20+ $ lineFoldingFileName = __DIR__ . '/examples/LineFolding.ics ' ;
21+ $ this ->assertFileExists ($ lineFoldingFileName , "Missing file {$ lineFoldingFileName }" );
22+
23+ $ sample = \file_get_contents ($ lineFoldingFileName );
24+ $ this ->assertNotEmpty ($ sample , "File {$ lineFoldingFileName } appears to be emtpy " );
3525
3626 $ test = new \ICalendarOrg \ZCiCal ($ sample );
3727
Original file line number Diff line number Diff line change 1+ BEGIN :VCALENDAR
2+ PRODID ;X-RICAL-TZSOURCE=TZINFO :-//Airbnb Inc//Hosting Calendar 0.8.8//EN
3+ CALSCALE :GREGORIAN
4+ VERSION :2.0
5+ BEGIN :VEVENT
6+ DTEND ;VALUE=DATE :20230611
7+ DTSTART ;VALUE=DATE :20230514
8+ 9+ DESCRIPTION :Reservation URL: https://www.airbnb.com/hosting/reservations/
10+ details/xxx\nPhone Number (Last 4 Digits): 0000
11+ SUMMARY :Reserved
12+ END :VEVENT
13+ END :VCALENDAR
You can’t perform that action at this time.
0 commit comments