moved includes and cleaned up paths
This commit is contained in:
parent
1490a96f14
commit
e7525fda56
45 changed files with 15 additions and 10 deletions
19
include/icalparser/tests/blank_description.phpt
Normal file
19
include/icalparser/tests/blank_description.phpt
Normal 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');
|
Loading…
Add table
Add a link
Reference in a new issue