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

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:52 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 232bf7502056b95f1419f186f1ebcf348e875475
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Tue Jan 27 15:19:40 2015 +0100

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

diff --git a/tests/VObject/Parser/XmlTest.php b/tests/VObject/Parser/XmlTest.php
index d0a4a22..a80611e 100644
--- a/tests/VObject/Parser/XmlTest.php
+++ b/tests/VObject/Parser/XmlTest.php
@@ -2004,6 +2004,32 @@ XML
 
     }
 
+    function testRFC6350Section6_8_1() {
+
+        $this->assertXMLReflexivelyEqualsToMimeDir(
+<<<XML
+<?xml version="1.0" encoding="UTF-8"?>
+<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
+ <vcard>
+  <key>
+   <parameters>
+    <mediatype>
+     <text>application/pgp-keys</text>
+    </mediatype>
+   </parameters>
+   <text>ftp://example.com/keys/jdoe</text>
+  </key>
+ </vcard>
+</vcards>
+XML
+,
+            'BEGIN:VCARD' . CRLF .
+            'VERSION:4.0' . CRLF .
+            'KEY;MEDIATYPE=application/pgp-keys:ftp://example.com/keys/jdoe' . 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