"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/sabre/vobject/tests/VObject/Recur/EventIterator/OverrideFirstEventTest.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.

OverrideFirstEventTest.php  (sabredav-3.1.2):OverrideFirstEventTest.php  (sabredav-3.1.3)
<?php <?php
namespace Sabre\VObject\RecurrenceIterator; namespace Sabre\VObject\RecurrenceIterator;
use Sabre\VObject\Reader; use Sabre\VObject\Reader;
use Sabre\VObject\TestCase;
use DateTime; use DateTime;
class OverrideFirstEventTest extends TestCase { class OverrideFirstEventTest extends \PHPUnit_Framework_TestCase {
use \Sabre\VObject\PHPUnitAssertions;
function testOverrideFirstEvent() { function testOverrideFirstEvent() {
$input = <<<ICS $input = <<<ICS
BEGIN:VCALENDAR BEGIN:VCALENDAR
VERSION:2.0 VERSION:2.0
BEGIN:VEVENT BEGIN:VEVENT
UID:foobar UID:foobar
DTSTART:20140803T120000Z DTSTART:20140803T120000Z
RRULE:FREQ=WEEKLY RRULE:FREQ=WEEKLY
skipping to change at line 70 skipping to change at line 71
END:VEVENT END:VEVENT
BEGIN:VEVENT BEGIN:VEVENT
UID:foobar UID:foobar
DTSTART:20140831T120000Z DTSTART:20140831T120000Z
SUMMARY:Original SUMMARY:Original
RECURRENCE-ID:20140831T120000Z RECURRENCE-ID:20140831T120000Z
END:VEVENT END:VEVENT
END:VCALENDAR END:VCALENDAR
ICS; ICS;
$this->assertVObjEquals( $this->assertVObjectEqualsVObject(
$expected, $expected,
$vcal $vcal
); );
} }
function testRemoveFirstEvent() { function testRemoveFirstEvent() {
$input = <<<ICS $input = <<<ICS
BEGIN:VCALENDAR BEGIN:VCALENDAR
skipping to change at line 113 skipping to change at line 114
END:VEVENT END:VEVENT
BEGIN:VEVENT BEGIN:VEVENT
UID:foobar UID:foobar
DTSTART:20140817T120000Z DTSTART:20140817T120000Z
SUMMARY:Original SUMMARY:Original
RECURRENCE-ID:20140817T120000Z RECURRENCE-ID:20140817T120000Z
END:VEVENT END:VEVENT
END:VCALENDAR END:VCALENDAR
ICS; ICS;
$this->assertVObjEquals( $this->assertVObjectEqualsVObject(
$expected, $expected,
$vcal $vcal
); );
} }
} }
 End of changes. 4 change blocks. 
4 lines changed or deleted 5 lines changed or added

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