u01jmg3 / ics-parser

Parser for iCalendar Events • PHP 8+, 7 (≥ 7.4), 5 (≥ 5.6)
MIT License
448 stars 144 forks source link

Permit arbitrary quantity of lines to be fed into Recurrence Tests #247

Closed s0600204 closed 4 years ago

s0600204 commented 4 years ago

Currently, the test framework in RecurrenceTests.php permit three ical lines to be passed when creating a VEVENT to test. (Expected to be DTSTART, DTEND, and RRULE)

Some tests only use two lines (typically skipping DTEND), whilst it would also be nice to be pass more lines, so as to build tests with arbitrary quantities of EXDATEs, RDATEs, etc.

The rfc5545RecurrenceExamplesTest.php file already uses this methodology to permit more than three lines to be added to a test VEVENT.


PR created primarily to circumvent whitespace problem with PR #246.