[Pkg-owncloud-commits] [php-sabre-vobject] 242/341: Add tests for Sections 6.2.5 & 6.2.6 from 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 8e100021845b63691428872a2d4f53e7640039e1
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Wed Jan 28 13:38:57 2015 +0100

    Add tests for Sections 6.2.5 & 6.2.6 from RFC6350.
---
 tests/VObject/Parser/XmlTest.php | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/tests/VObject/Parser/XmlTest.php b/tests/VObject/Parser/XmlTest.php
index 13a5cec..f61229b 100644
--- a/tests/VObject/Parser/XmlTest.php
+++ b/tests/VObject/Parser/XmlTest.php
@@ -1451,10 +1451,48 @@ XML
 
     function testRFC6350Section6_2_5() {
 
+        $this->assertXMLReflexivelyEqualsToMimeDir(
+<<<XML
+<?xml version="1.0" encoding="UTF-8"?>
+<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
+ <vcard>
+  <bday>
+   <date-and-or-time>19531015T231000Z</date-and-or-time>
+  </bday>
+ </vcard>
+</vcards>
+XML
+,
+
+            'BEGIN:VCARD' . CRLF .
+            'VERSION:4.0' . CRLF .
+            'BDAY:19531015T231000Z' . CRLF .
+            'END:VCARD' . CRLF
+        );
+
     }
 
     function testRFC6350Section6_2_6() {
 
+        $this->assertXMLReflexivelyEqualsToMimeDir(
+<<<XML
+<?xml version="1.0" encoding="UTF-8"?>
+<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
+ <vcard>
+  <anniversary>
+   <date-and-or-time>19960415</date-and-or-time>
+  </anniversary>
+ </vcard>
+</vcards>
+XML
+,
+
+            'BEGIN:VCARD' . CRLF .
+            'VERSION:4.0' . CRLF .
+            'ANNIVERSARY:19960415' . CRLF .
+            'END:VCARD' . CRLF
+        );
+
     }
 
     /**

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