Mercurial > hg > rc1
annotate vendor/sabre/vobject/tests/VObject/Property/ICalendar/DurationTest.php @ 46:c822d3ec1f93
quote needed now
| author | Charlie Root |
|---|---|
| date | Thu, 28 Aug 2025 10:53:42 -0400 |
| parents | 430dbd5346f7 |
| children |
| rev | line source |
|---|---|
| 7 | 1 <?php |
| 2 | |
| 3 namespace Sabre\VObject\Property\ICalendar; | |
| 4 | |
| 5 use Sabre\VObject\Component\VCalendar; | |
| 6 use Sabre\VObject\Component\VEvent; | |
| 7 | |
| 8 class DurationTest extends \PHPUnit_Framework_TestCase { | |
| 9 | |
| 10 function testGetDateInterval() { | |
| 11 | |
| 12 $vcal = new VCalendar(); | |
| 13 $event = $vcal->add('VEVENT', array('DURATION' => array('PT1H'))); | |
| 14 | |
| 15 $this->assertEquals( | |
| 16 new \DateInterval('PT1H'), | |
| 17 $event->{'DURATION'}->getDateInterval() | |
| 18 ); | |
| 19 } | |
| 20 } |
