moved includes and cleaned up paths

This commit is contained in:
root 2018-05-17 16:11:27 +02:00
parent 1490a96f14
commit e7525fda56
45 changed files with 15 additions and 10 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');