You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
760 B
PHP
25 lines
760 B
PHP
<?php
|
|
|
|
use ICal\ICal;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class DynamicPropertiesTest extends TestCase
|
|
{
|
|
// phpcs:disable Squiz.Commenting.FunctionComment
|
|
|
|
public function testDynamicArraysAreSet()
|
|
{
|
|
$ical = new ICal('./tests/ical/ical-monthly.ics');
|
|
|
|
foreach ($ical->events() as $event) {
|
|
$this->assertTrue(isset($event->dtstart_array));
|
|
$this->assertTrue(isset($event->dtend_array));
|
|
$this->assertTrue(isset($event->dtstamp_array));
|
|
$this->assertTrue(isset($event->uid_array));
|
|
$this->assertTrue(isset($event->created_array));
|
|
$this->assertTrue(isset($event->last_modified_array));
|
|
$this->assertTrue(isset($event->summary_array));
|
|
}
|
|
}
|
|
}
|