Skip to content

Commit

Permalink
fix invalid param
Browse files Browse the repository at this point in the history
Method call is provided 1 parameters, but the method signature uses 0 parameters
  • Loading branch information
Rotzbua committed Feb 25, 2020
1 parent b358fcc commit b81fc6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/recurring_events.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ foreach ($events[0]['EXDATES'] as $exDate) {


$results = $cal->parseFile(__DIR__ . '/cal/recur_instances_with_modifications.ics');
$events = $cal->getSortedEvents(true);
$events = $cal->getSortedEvents();

Assert::false(empty($events[0]['RECURRENCES']));
// the 12th entry is the modified event, related to the remaining recurring events
Expand Down Expand Up @@ -136,7 +136,7 @@ usort($trueEvents, function ($a, $b) {
return $a['DTSTART'] > $b['DTSTART'];
});

$events = $cal->getSortedEvents(true);
$events = $cal->getSortedEvents();
Assert::false(empty($events[0]['RECURRENCES']));
Assert::equal(count($trueEvents), count($events));
foreach($trueEvents as $index => $trueEvent) {
Expand Down Expand Up @@ -204,4 +204,4 @@ Assert::equal('15.4.2019 09:00:00', $events[35]['DTSTART']->format('j.n.Y H:i:s'
Assert::equal('16.4.2019 09:00:00', $events[36]['DTSTART']->format('j.n.Y H:i:s'));
Assert::equal('17.4.2019 09:00:00', $events[37]['DTSTART']->format('j.n.Y H:i:s'));
Assert::equal('18.4.2019 09:00:00', $events[38]['DTSTART']->format('j.n.Y H:i:s'));
Assert::equal('19.4.2019 09:00:00', $events[39]['DTSTART']->format('j.n.Y H:i:s'));
Assert::equal('19.4.2019 09:00:00', $events[39]['DTSTART']->format('j.n.Y H:i:s'));

0 comments on commit b81fc6c

Please sign in to comment.