[Pkg-owncloud-commits] [php-sabre-vobject] 208/341: Example 1 from RFC6351 is reflexively equals.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit 5fdf801c6d4f2226b79ac11177ec418569c95e21
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Mon Jan 26 15:32:54 2015 +0100

    Example 1 from RFC6351 is reflexively equals.
---
 tests/VObject/Parser/XmlTest.php | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

diff --git a/tests/VObject/Parser/XmlTest.php b/tests/VObject/Parser/XmlTest.php
index 7505948..fa9e632 100644
--- a/tests/VObject/Parser/XmlTest.php
+++ b/tests/VObject/Parser/XmlTest.php
@@ -1141,7 +1141,7 @@ XML
 
     function testRFC6351Example1() {
 
-        $this->assertXMLEqualsToMimeDir(
+        $this->assertXMLReflexivelyEqualsToMimeDir(
 <<<XML
 <?xml version="1.0" encoding="UTF-8"?>
 <vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
@@ -1179,6 +1179,34 @@ XML
             'END:VCARD' . CRLF
         );
 
+        $xml =
+<<<XML
+<?xml version="1.0" encoding="UTF-8"?>
+<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
+ <vcard>
+  <fn>
+   <text>J. Doe</text>
+  </fn>
+  <n>
+   <surname>Doe</surname>
+   <given>J.</given>
+   <additional/>
+   <prefix/>
+   <suffix/>
+  </n>
+  <x-file>
+   <parameters>
+    <mediatype>
+     <text>image/jpeg</text>
+    </mediatype>
+   </parameters>
+   <unknown>alien.jpg</unknown>
+  </x-file>
+  <a xmlns="http://www.w3.org/1999/xhtml" href="http://www.example.com">My web page!</a>
+ </vcard>
+</vcards>
+XML;
+
     }
 
     function testRFC6351Section5() {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list