[Pkg-owncloud-commits] [php-sabredav] 48/66: Unittest for Issue #178, #395.

David Prévot taffit at moszumanska.debian.org
Sat Jan 18 20:08:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit b2582b85f3acb2d3cd61d81e510bde10039c3cb0
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Wed Jan 8 15:53:07 2014 +0100

    Unittest for Issue #178, #395.
---
 tests/Sabre/DAV/Locks/PluginTest.php | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/tests/Sabre/DAV/Locks/PluginTest.php b/tests/Sabre/DAV/Locks/PluginTest.php
index 6582435..f466570 100644
--- a/tests/Sabre/DAV/Locks/PluginTest.php
+++ b/tests/Sabre/DAV/Locks/PluginTest.php
@@ -933,22 +933,21 @@ class PluginTest extends DAV\AbstractServer {
 
     }
 
-
-    function testGetTimeoutHeaderNotSet() {
+    function testGetTimeoutHeaderTwoItems() {
 
         $request = HTTP\Sapi::createFromServerArray(array(
+            'HTTP_TIMEOUT' => 'second-5, infinite',
         ));
 
         $this->server->httpRequest = $request;
-        $this->assertEquals(0, $this->locksPlugin->getTimeoutHeader());
+        $this->assertEquals(5, $this->locksPlugin->getTimeoutHeader());
 
     }
 
-
     function testGetTimeoutHeaderInfinite() {
 
         $request = HTTP\Sapi::createFromServerArray(array(
-            'HTTP_TIMEOUT' => 'infinite',
+            'HTTP_TIMEOUT' => 'infinite, second-5',
         ));
 
         $this->server->httpRequest = $request;

-- 
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