[Pkg-owncloud-commits] [php-sabre-vobject] 226/341: Add tests for Section 6.5 of RFC6350.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:51 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 e4dbc464ff2c3afa0ae83ce40352bec8c7c705b2
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Tue Jan 27 12:13:03 2015 +0100
Add tests for Section 6.5 of RFC6350.
---
tests/VObject/Parser/XmlTest.php | 44 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/tests/VObject/Parser/XmlTest.php b/tests/VObject/Parser/XmlTest.php
index deba0b7..033d58c 100644
--- a/tests/VObject/Parser/XmlTest.php
+++ b/tests/VObject/Parser/XmlTest.php
@@ -1616,6 +1616,50 @@ XML
}
+ function testRFC6350Section6_5_1() {
+
+ $this->assertXMLReflexivelyEqualsToMimeDir(
+<<<XML
+<?xml version="1.0" encoding="UTF-8"?>
+<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
+ <vcard>
+ <tz>
+ <text>Raleigh/North America</text>
+ </tz>
+ </vcard>
+</vcards>
+XML
+,
+ 'BEGIN:VCARD' . CRLF .
+ 'VERSION:4.0' . CRLF .
+ 'TZ:Raleigh/North America' . CRLF .
+ 'END:VCARD' . CRLF
+ );
+
+ }
+
+ function testRFC6350Section6_5_2() {
+
+ $this->assertXMLReflexivelyEqualsToMimeDir(
+<<<XML
+<?xml version="1.0" encoding="UTF-8"?>
+<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
+ <vcard>
+ <geo>
+ <uri>geo:37.386013,-122.082932</uri>
+ </geo>
+ </vcard>
+</vcards>
+XML
+,
+ 'BEGIN:VCARD' . CRLF .
+ 'VERSION:4.0' . CRLF .
+ 'GEO:geo:37.386013\,-122.082932' . 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