ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
DurationTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\VObject\Property\ICalendar
;
4
5
use
PHPUnit\Framework\TestCase
;
6
use
Sabre\VObject\Component\VCalendar
;
7
use
Sabre\VObject\Component\VEvent
;
8
9
class
DurationTest
extends
TestCase {
10
11
function
testGetDateInterval
() {
12
13
$vcal
=
new
VCalendar
();
14
$event =
$vcal
->add(
'VEVENT'
, [
'DURATION'
=> [
'PT1H'
]]);
15
16
$this->assertEquals(
17
new
\
DateInterval
(
'PT1H'
),
18
$event->{
'DURATION'
}->getDateInterval()
19
);
20
}
21
}
Sabre\VObject\Property\ICalendar
Definition:
CalAddress.php:3
$vcal
$vcal
Definition:
bench_freebusygenerator.php:22
DateInterval
Sabre\VObject\Component\VCalendar
The VCalendar component.
Definition:
VCalendar.php:23
Sabre\CalDAV\ICalendar\DurationTest\testGetDateInterval
testGetDateInterval()
Definition:
DurationTest.php:11
VEvent
Sabre\CalDAV\ICalendar\DurationTest
Definition:
DurationTest.php:9
VCalendar
php
TestCase
libs
composer
vendor
sabre
vobject
tests
VObject
Property
ICalendar
DurationTest.php
Generated on Thu Jan 16 2025 19:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)