[Pkg-owncloud-commits] [php-sabredav] 03/07: Test for issue #704
David Prévot
taffit at moszumanska.debian.org
Tue Oct 27 19:44:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag 3.0.5
in repository php-sabredav.
commit e304ad9933e66474cb02be4be27256962ce1dd9b
Author: Evert Pot <me at evertpot.com>
Date: Tue Sep 15 20:18:35 2015 +0200
Test for issue #704
---
tests/Sabre/DAV/Xml/Element/ResponseTest.php | 32 ++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/tests/Sabre/DAV/Xml/Element/ResponseTest.php b/tests/Sabre/DAV/Xml/Element/ResponseTest.php
index 8ca4bee..3ae2c63 100644
--- a/tests/Sabre/DAV/Xml/Element/ResponseTest.php
+++ b/tests/Sabre/DAV/Xml/Element/ResponseTest.php
@@ -213,6 +213,38 @@ class ResponseTest extends DAV\Xml\XmlTest {
}
/**
+ * @depends testSimple
+ */
+ function testSerializeUrlencoding() {
+
+ $innerProps = [
+ 200 => [
+ '{DAV:}displayname' => 'my file',
+ ],
+ ];
+
+ $property = new Response('space here', $innerProps);
+
+ $xml = $this->write(['{DAV:}root' => ['{DAV:}response' => $property]]);
+
+ $this->assertXmlStringEqualsXmlString(
+'<?xml version="1.0"?>
+<d:root xmlns:d="DAV:">
+ <d:response>
+ <d:href>/space%20here</d:href>
+ <d:propstat>
+ <d:prop>
+ <d:displayname>my file</d:displayname>
+ </d:prop>
+ <d:status>HTTP/1.1 200 OK</d:status>
+ </d:propstat>
+ </d:response>
+</d:root>
+', $xml);
+
+ }
+
+ /**
* In the case of {DAV:}prop, a deserializer should never get called, if
* the property element is empty.
*/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list