OzzyCzech / icalparser

Simple ical parser for PHP
https://ozana.cz
BSD 3-Clause "New" or "Revised" License
59 stars 22 forks source link

Update IcalParser.php #30

Open ghost opened 6 years ago

ghost commented 6 years ago

fix calculation of event recurrences depending on the current date (and not on event start date)

OzzyCzech commented 6 years ago

will be possible fix failing tests (./vendor/bin/tester tests)

./vendor/bin/tester tests/
 _____ ___  ___ _____ ___  ___
|_   _/ __)( __/_   _/ __)| _ )
  |_| \___ /___) |_| \___ |_|_\  v2.0.1

Note: Default interpreter is CLI since Tester v2.0. It used to be CGI.
Note: No php.ini is used.
PHP 7.2.4 (cli) | php -n | 8 threads

...F...

-- FAILED: recurring_events.phpt
   Failed: 40 should be equal to 35

   in icalparser/tests/recurring_events.phpt(48) Assert::equal(35, sizeof($recurrences));

FAILURES! (7 tests, 1 failure, 0.1 seconds)
OzzyCzech commented 6 years ago

Hi, will be possible fix tests?