"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/sabre/vobject/tests/VObject/Recur/EventIterator/MissingOverriddenTest.php" between
sabredav-3.1.2.zip and sabredav-3.1.3.zip

About: SabreDAV allows you to easily add WebDAV support to a PHP application.

MissingOverriddenTest.php  (sabredav-3.1.2):MissingOverriddenTest.php  (sabredav-3.1.3)
<?php <?php
namespace Sabre\VObject\Recur\EventIterator; namespace Sabre\VObject\Recur\EventIterator;
use DateTime; use DateTime;
use Sabre\VObject\Reader; use Sabre\VObject\Reader;
use Sabre\VObject\TestCase;
class MissingOverriddenTest extends TestCase { class MissingOverriddenTest extends \PHPUnit_Framework_TestCase {
use \Sabre\VObject\PHPUnitAssertions;
function testExpand() { function testExpand() {
$input = <<<ICS $input = <<<ICS
BEGIN:VCALENDAR BEGIN:VCALENDAR
VERSION:2.0 VERSION:2.0
BEGIN:VEVENT BEGIN:VEVENT
UID:foo UID:foo
DTSTART:20130727T120000Z DTSTART:20130727T120000Z
DURATION:PT1H DURATION:PT1H
skipping to change at line 46 skipping to change at line 47
$vcal = $vcal->expand(new DateTime('2011-01-01'), new DateTime('2015-01- 01')); $vcal = $vcal->expand(new DateTime('2011-01-01'), new DateTime('2015-01- 01'));
$output = <<<ICS $output = <<<ICS
BEGIN:VCALENDAR BEGIN:VCALENDAR
VERSION:2.0 VERSION:2.0
BEGIN:VEVENT BEGIN:VEVENT
UID:foo UID:foo
DTSTART:20130727T120000Z DTSTART:20130727T120000Z
DURATION:PT1H DURATION:PT1H
SUMMARY:A SUMMARY:A
RECURRENCE-ID:20130727T120000Z
END:VEVENT END:VEVENT
BEGIN:VEVENT BEGIN:VEVENT
RECURRENCE-ID:20130728T120000Z RECURRENCE-ID:20130728T120000Z
UID:foo UID:foo
DTSTART:20140101T120000Z DTSTART:20140101T120000Z
DURATION:PT1H DURATION:PT1H
SUMMARY:B SUMMARY:B
END:VEVENT END:VEVENT
END:VCALENDAR END:VCALENDAR
ICS; ICS;
$this->assertVObjEquals($output, $vcal); $this->assertVObjectEqualsVObject($output, $vcal);
} }
} }
 End of changes. 4 change blocks. 
3 lines changed or deleted 5 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS