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
}
$vcal
$vcal
Definition:
bench_freebusygenerator.php:22
php
An exception for terminatinating execution or to throw for unit testing.
Sabre\VObject\Component\VCalendar
The VCalendar component.
Definition:
VCalendar.php:23
Sabre\VObject\Component\VEvent
VEvent component.
Definition:
VEvent.php:19
Sabre\VObject\Property\ICalendar\DurationTest
Definition:
DurationTest.php:9
Sabre\VObject\Property\ICalendar\DurationTest\testGetDateInterval
testGetDateInterval()
Definition:
DurationTest.php:11
Sabre\VObject\Property\ICalendar
Definition:
CalAddress.php:3
libs
composer
vendor
sabre
vobject
tests
VObject
Property
ICalendar
DurationTest.php
Generated on Thu Oct 2 2025 19:01:17 for ILIAS by
1.9.4 (using
Doxyfile
)