Mercurial > hg > rc1
view vendor/sabre/vobject/tests/VObject/Property/ICalendar/DurationTest.php @ 27:e097905863b9
turn off logging
author | Charlie Root |
---|---|
date | Sun, 28 Jan 2018 11:37:00 -0500 |
parents | 430dbd5346f7 |
children |
line wrap: on
line source
<?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() ); } }