Revert "upgrade icalparser from e6a3a285cf6e239236a40153a66b67b940220b43 to cae1631b9496a7415ef960b0dff1cd0f39fe3135"

This reverts commit e3db4803e0.
This commit is contained in:
root 2023-01-15 01:55:56 +01:00
parent a90a7b111d
commit 2395e88e36
31 changed files with 876 additions and 1328 deletions

View file

@ -0,0 +1,19 @@
<?php
/**
* @author Roman Ozana <ozana@omdesign.cz>
*/
use Tester\Assert;
use Tester\Environment;
require_once __DIR__ . '/../vendor/autoload.php';
Environment::setup();
date_default_timezone_set('Europe/Prague');
$cal = new \om\IcalParser();
$results = $cal->parseFile(__DIR__ . '/cal/blank_description.ics');
Assert::same('', $results['VEVENT'][0]['DESCRIPTION']);
Assert::same('America/Los_Angeles', $cal->timezone->getName());
Assert::same($results['DAYLIGHT'][0]['RRULE']['FREQ'], 'YEARLY');