[Pkg-owncloud-commits] [php-sabre-vobject] 220/341: Add tests for Section 6.3 of RFC6350.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:50 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 4963a81568f359f41b81ad6d4d4c24be87892947
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Tue Jan 27 11:12:28 2015 +0100

    Add tests for Section 6.3 of RFC6350.
---
 tests/VObject/Parser/XmlTest.php | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/tests/VObject/Parser/XmlTest.php b/tests/VObject/Parser/XmlTest.php
index d2837d7..26401f8 100644
--- a/tests/VObject/Parser/XmlTest.php
+++ b/tests/VObject/Parser/XmlTest.php
@@ -1476,6 +1476,35 @@ XML
 
     }
 
+    function testRFC6350Section6_3_1() {
+
+        $this->assertXMLReflexivelyEqualsToMimeDir(
+<<<XML
+<?xml version="1.0" encoding="UTF-8"?>
+<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
+ <vcard>
+  <adr>
+   <pobox/>
+   <ext/>
+   <street>123 Main Street</street>
+   <locality>Any Town</locality>
+   <region>CA</region>
+   <code>91921-1234</code>
+   <country>U.S.A.</country>
+  </adr>
+ </vcard>
+</vcards>
+XML
+,
+
+            'BEGIN:VCARD' . CRLF .
+            'VERSION:4.0' . CRLF .
+            'ADR:;;123 Main Street;Any Town;CA;91921-1234;U.S.A.' . CRLF .
+            'END:VCARD' . CRLF
+        );
+
+    }
+
     /**
      * Check this equality:
      *     XML -> object model -> MIME Dir.

-- 
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