[Pkg-owncloud-commits] [php-sabre-vobject] 198/341: Add a test for RFC6351 Section 5.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:47 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 1c506f1913a5004eae63da5510063078305f2822
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Mon Jan 26 11:18:00 2015 +0100
Add a test for RFC6351 Section 5.
---
tests/VObject/Parser/XmlTest.php | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/tests/VObject/Parser/XmlTest.php b/tests/VObject/Parser/XmlTest.php
index 870c373..0e59eae 100644
--- a/tests/VObject/Parser/XmlTest.php
+++ b/tests/VObject/Parser/XmlTest.php
@@ -1151,6 +1151,34 @@ XML
}
+ function testRFC6351Section5() {
+
+ $this->assertXMLEqualsToMimeDir(
+<<<XML
+<?xml version="1.0" encoding="UTF-8"?>
+<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
+ <vcard>
+ <tel>
+ <parameters>
+ <type>
+ <text>voice</text>
+ <text>video</text>
+ </type>
+ </parameters>
+ <uri>tel:+1-555-555-555</uri>
+ </tel>
+ </vcard>
+</vcards>
+XML
+,
+ 'BEGIN:VCARD' . CRLF .
+ 'VERSION:4.0' . CRLF .
+ 'TEL;TYPE="voice,video":tel:+1-555-555-555' . 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