"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/sabre/vobject/tests/VObject/Property/ICalendar/RecurTest.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.

RecurTest.php  (sabredav-3.1.2):RecurTest.php  (sabredav-3.1.3)
<?php <?php
namespace Sabre\VObject\Property\ICalendar; namespace Sabre\VObject\Property\ICalendar;
use Sabre\VObject\Component\VCalendar; use Sabre\VObject\Component\VCalendar;
use Sabre\VObject\Reader; use Sabre\VObject\Reader;
use Sabre\VObject\TestCase;
class RecurTest extends TestCase { class RecurTest extends \PHPUnit_Framework_TestCase {
use \Sabre\VObject\PHPUnitAssertions;
function testParts() { function testParts() {
$vcal = new VCalendar(); $vcal = new VCalendar();
$recur = $vcal->add('RRULE', 'FREQ=Daily'); $recur = $vcal->add('RRULE', 'FREQ=Daily');
$this->assertInstanceOf('Sabre\VObject\Property\ICalendar\Recur', $recur ); $this->assertInstanceOf('Sabre\VObject\Property\ICalendar\Recur', $recur );
$this->assertEquals(['FREQ' => 'DAILY'], $recur->getParts()); $this->assertEquals(['FREQ' => 'DAILY'], $recur->getParts());
$recur->setParts(['freq' => 'MONTHLY']); $recur->setParts(['freq' => 'MONTHLY']);
skipping to change at line 141 skipping to change at line 142
DTSTART;TZID=Europe/Berlin:20160301T150000 DTSTART;TZID=Europe/Berlin:20160301T150000
DTEND;TZID=Europe/Berlin:20160301T170000 DTEND;TZID=Europe/Berlin:20160301T170000
SUMMARY:test SUMMARY:test
RRULE:FREQ=DAILY;UNTIL=20160305T230000Z RRULE:FREQ=DAILY;UNTIL=20160305T230000Z
ORGANIZER;CN=robert pipo:mailto:robert@example.org ORGANIZER;CN=robert pipo:mailto:robert@example.org
DTSTAMP:20160312T183800Z DTSTAMP:20160312T183800Z
END:VEVENT END:VEVENT
END:VCALENDAR END:VCALENDAR
'; ';
$this->assertVObjEquals( $this->assertVObjectEqualsVObject(
$expected, $expected,
$vcal $vcal
); );
} }
function testValidateStripNoFreq() { function testValidateStripNoFreq() {
$input = 'BEGIN:VCALENDAR $input = 'BEGIN:VCALENDAR
VERSION:2.0 VERSION:2.0
skipping to change at line 191 skipping to change at line 192
TRANSP:OPAQUE TRANSP:OPAQUE
DTSTART;TZID=Europe/Berlin:20160301T150000 DTSTART;TZID=Europe/Berlin:20160301T150000
DTEND;TZID=Europe/Berlin:20160301T170000 DTEND;TZID=Europe/Berlin:20160301T170000
SUMMARY:test SUMMARY:test
ORGANIZER;CN=robert pipo:mailto:robert@example.org ORGANIZER;CN=robert pipo:mailto:robert@example.org
DTSTAMP:20160312T183800Z DTSTAMP:20160312T183800Z
END:VEVENT END:VEVENT
END:VCALENDAR END:VCALENDAR
'; ';
$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