Author: ts
Date: Sat Oct 13 01:33:45 2007
New Revision: 6449
Log:
- Added additional check for correct status code and name to client tests.
Modified:
trunk/Webdav/tests/client_test.php
Modified: trunk/Webdav/tests/client_test.php
==============================================================================
--- trunk/Webdav/tests/client_test.php [iso-8859-1] (original)
+++ trunk/Webdav/tests/client_test.php [iso-8859-1] Sat Oct 13 01:33:45 2007
@@ -105,8 +105,8 @@
$response = array();
$response['headers'] = $this->getFileContent( $responseDir, 'headers'
);
$response['body'] = $this->getFileContent( $responseDir, 'body' );
- $response['code'] = $this->getFileContent( $responseDir, 'code' );
- $response['name'] = $this->getFileContent( $responseDir, 'name' );
+ $response['code'] = trim( $this->getFileContent( $responseDir,
'code' ) );
+ $response['name'] = trim( $this->getFileContent( $responseDir,
'name' ) );
// Optionally set a body.
$GLOBALS['EZC_WEBDAV_TRANSPORT_TEST_BODY'] = ( $request['body'] !==
false ? $request['body'] : '' );
@@ -137,6 +137,12 @@
$responseBody,
'Body sent by WebDAV server incorrect.'
);
+
+ $this->assertEquals(
+ "HTTP/1.1 {$response['code']} {$response['name']}",
+ $responseStatus,
+ 'Status code sent by WebDAV server incoreect.'
+ );
}
protected function getFileContent( $dir, $file )
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components