Author: ts
Date: Mon Sep 24 14:57:20 2007
New Revision: 6246
Log:
- Fixed GET request test cases.
Modified:
trunk/Webdav/src/transport.php
trunk/Webdav/tests/clients/rfc/get_collection/response/headers.php
trunk/Webdav/tests/clients/rfc/get_collection/response/result.ser
trunk/Webdav/tests/clients/rfc/get_resource/response/headers.php
trunk/Webdav/tests/visualize_results.php
Modified: trunk/Webdav/src/transport.php
==============================================================================
--- trunk/Webdav/src/transport.php [iso-8859-1] (original)
+++ trunk/Webdav/src/transport.php [iso-8859-1] Mon Sep 24 14:57:20 2007
@@ -1246,8 +1246,7 @@
*/
protected function processGetCollectionResponse(
ezcWebdavGetCollectionResponse $response )
{
- $dom = $this->getDom();
- return new ezcWebdavDisplayInformation( $response, $dom );
+ return new ezcWebdavDisplayInformation( $response, null );
}
/**
Modified: trunk/Webdav/tests/clients/rfc/get_collection/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/rfc/get_collection/response/headers.php
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/rfc/get_collection/response/headers.php
[iso-8859-1] Mon Sep 24 14:57:20 2007
@@ -1,8 +1,8 @@
<?php
return array (
- 'Content-Length' => '8',
- 'Content-Type' => '"utf-8"',
+ 0 => 'HTTP/1.1 200 OK',
);
+
?>
Modified: trunk/Webdav/tests/clients/rfc/get_collection/response/result.ser
==============================================================================
--- trunk/Webdav/tests/clients/rfc/get_collection/response/result.ser
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/rfc/get_collection/response/result.ser
[iso-8859-1] Mon Sep 24 14:57:20 2007
@@ -1,2 +1,1 @@
-a:2:{s:7:"headers";a:1:{i:0;s:15:"HTTP/1.1 200 OK";}s:4:"body";s:39:"<?xml
version="1.0" encoding="UTF-8"?>
-";}
+a:2:{s:7:"headers";a:1:{i:0;s:15:"HTTP/1.1 200 OK";}s:4:"body";s:0:"";}
Modified: trunk/Webdav/tests/clients/rfc/get_resource/response/headers.php
==============================================================================
--- trunk/Webdav/tests/clients/rfc/get_resource/response/headers.php
[iso-8859-1] (original)
+++ trunk/Webdav/tests/clients/rfc/get_resource/response/headers.php
[iso-8859-1] Mon Sep 24 14:57:20 2007
@@ -1,8 +1,9 @@
<?php
return array (
+ 0 => 'HTTP/1.1 200 OK',
'Content-Length' => '49',
- 'Content-Type' => 'text/html; charset="utf-8"',
+ 'Content-Type' => '"utf-8"',
);
?>
Modified: trunk/Webdav/tests/visualize_results.php
==============================================================================
--- trunk/Webdav/tests/visualize_results.php [iso-8859-1] (original)
+++ trunk/Webdav/tests/visualize_results.php [iso-8859-1] Mon Sep 24 14:57:20
2007
@@ -34,6 +34,16 @@
{
$res['info'] = $unorderedRes['info'];
unset( $unorderedRes['info'] );
+ }
+ if ( isset( $unorderedRes['code'] ) )
+ {
+ $res['code'] = $unorderedRes['code'];
+ unset( $unorderedRes['code'] );
+ }
+ if ( isset( $unorderedRes['name'] ) )
+ {
+ $res['name'] = $unorderedRes['name'];
+ unset( $unorderedRes['name'] );
}
if ( isset( $unorderedRes['uri'] ) )
{
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components