Procházet zdrojové kódy

Patched CommonHttpTests to account for test domains without a path or TLD postfix. This resolves four test failures as a result of the test code (not the class being tested which is not impacted in any way)

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20940 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic před 16 roky
rodič
revize
d0f2211b7e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tests/Zend/Http/Client/CommonHttpTests.php

+ 1 - 1
tests/Zend/Http/Client/CommonHttpTests.php

@@ -506,7 +506,7 @@ abstract class Zend_Http_Client_CommonHttpTests extends PHPUnit_Framework_TestCa
 
         // Set the new expected URI
         $uri = clone $this->client->getUri();
-        $uri->setPath(dirname($uri->getPath()) . '/path/to/fake/file.ext');
+        $uri->setPath(rtrim(dirname($uri->getPath()), '/') . '/path/to/fake/file.ext');
         $uri = $uri->__toString();
 
         $res = $this->client->request('GET');