"Fossies" - the Fresh Open Source Software Archive  

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

XmlTest.php  (sabredav-3.1.2):XmlTest.php  (sabredav-3.1.3)
<?php <?php
namespace Sabre\VObject\Parser; namespace Sabre\VObject\Parser;
use Sabre\VObject; use Sabre\VObject;
use Sabre\VObject\TestCase;
class XmlTest extends TestCase { class XmlTest extends \PHPUnit_Framework_TestCase {
use VObject\PHPUnitAssertions;
function testRFC6321Example1() { function testRFC6321Example1() {
$this->assertXMLEqualsToMimeDir( $this->assertXMLEqualsToMimeDir(
<<<XML <<<XML
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<icalendar xmlns="urn:ietf:params:xml:ns:icalendar-2.0"> <icalendar xmlns="urn:ietf:params:xml:ns:icalendar-2.0">
<vcalendar> <vcalendar>
<properties> <properties>
<calscale> <calscale>
skipping to change at line 214 skipping to change at line 215
<text>00959BC664CA650E933C892C@example.com</text> <text>00959BC664CA650E933C892C@example.com</text>
</uid> </uid>
</properties> </properties>
</vevent> </vevent>
</components> </components>
</vcalendar> </vcalendar>
</icalendar> </icalendar>
XML; XML;
$component = VObject\Reader::readXML($xml); $component = VObject\Reader::readXML($xml);
$this->assertVObjEquals( $this->assertVObjectEqualsVObject(
'BEGIN:VCALENDAR' . "\n" . 'BEGIN:VCALENDAR' . "\n" .
'VERSION:2.0' . "\n" . 'VERSION:2.0' . "\n" .
'PRODID:-//Example Inc.//Example Client//EN' . "\n" . 'PRODID:-//Example Inc.//Example Client//EN' . "\n" .
'BEGIN:VTIMEZONE' . "\n" . 'BEGIN:VTIMEZONE' . "\n" .
'LAST-MODIFIED:20040110T032845Z' . "\n" . 'LAST-MODIFIED:20040110T032845Z' . "\n" .
'TZID:US/Eastern' . "\n" . 'TZID:US/Eastern' . "\n" .
'BEGIN:DAYLIGHT' . "\n" . 'BEGIN:DAYLIGHT' . "\n" .
'DTSTART:20000404T020000' . "\n" . 'DTSTART:20000404T020000' . "\n" .
'RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4' . "\n" . 'RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4' . "\n" .
'TZNAME:EDT' . "\n" . 'TZNAME:EDT' . "\n" .
skipping to change at line 2876 skipping to change at line 2877
} }
/** /**
* Check this equality: * Check this equality:
* XML -> object model -> MIME Dir. * XML -> object model -> MIME Dir.
*/ */
protected function assertXMLEqualsToMimeDir($xml, $mimedir) { protected function assertXMLEqualsToMimeDir($xml, $mimedir) {
$component = VObject\Reader::readXML($xml); $component = VObject\Reader::readXML($xml);
$this->assertVObjEquals($mimedir, $component); $this->assertVObjectEqualsVObject($mimedir, $component);
} }
/** /**
* Check this (reflexive) equality: * Check this (reflexive) equality:
* XML -> object model -> MIME Dir -> object model -> XML. * XML -> object model -> MIME Dir -> object model -> XML.
*/ */
protected function assertXMLReflexivelyEqualsToMimeDir($xml, $mimedir) { protected function assertXMLReflexivelyEqualsToMimeDir($xml, $mimedir) {
$this->assertXMLEqualsToMimeDir($xml, $mimedir); $this->assertXMLEqualsToMimeDir($xml, $mimedir);
 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