Revert "upgrade icalparser from e6a3a285cf6e239236a40153a66b67b940220b43 to cae1631b9496a7415ef960b0dff1cd0f39fe3135"

This reverts commit e2541c84e4.
This commit is contained in:
root 2023-04-23 13:28:43 +02:00
parent b9da2622a4
commit d48cf5c579
31 changed files with 876 additions and 1328 deletions

View file

@ -0,0 +1,20 @@
<?php
/**
* @author PC Drew <pc@soprisapps.com>
*/
use Tester\Assert;
require_once __DIR__ . '/../vendor/autoload.php';
\Tester\Environment::setup();
date_default_timezone_set('Europe/Prague');
$cal = new \om\IcalParser();
$results = $cal->parseFile(__DIR__ . '/cal/multiple_attachments.ics');
// Backwards compatibility, there is only ever one key displayed
Assert::type('string', $results['VEVENT'][0]['ATTACH']);
// The new key 'ATTACHMENTS' is an array with 1 or more attachments
Assert::type('array', $results['VEVENT'][0]['ATTACHMENTS']);
Assert::count(2, $results['VEVENT'][0]['ATTACHMENTS']);