Page MenuHomePhabricator

DurationTest.php
No OneTemporary

DurationTest.php

<?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

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)

Event Timeline