Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1841404
DurationTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
473 B
Subscribers
None
DurationTest.php
View Options
<?php
namespace
Sabre\VObject\Property\ICalendar
;
use
Sabre\VObject\Component\VCalendar
;
use
Sabre\VObject\Component\VEvent
;
class
DurationTest
extends
\PHPUnit_Framework_TestCase
{
function
testGetDateInterval
()
{
$vcal
=
new
VCalendar
();
$event
=
$vcal
->
add
(
'VEVENT'
,
array
(
'DURATION'
=>
array
(
'PT1H'
)));
$this
->
assertEquals
(
new
\DateInterval
(
'PT1H'
),
$event
->{
'DURATION'
}->
getDateInterval
()
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jan 7, 3:16 PM (2 d, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
916866
Default Alt Text
DurationTest.php (473 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment