Forráskód Böngészése

fixed directory separator problem on Zend_Http_CookieTest on windows systems

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20388 44c647ce-9c0f-0410-b52a-842ac1e357ba
mabe 16 éve
szülő
commit
fd1e16ac5e
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      tests/Zend/Http/CookieTest.php

+ 3 - 0
tests/Zend/Http/CookieTest.php

@@ -152,6 +152,9 @@ class Zend_Http_CookieTest extends PHPUnit_Framework_TestCase
         $path = $uri->getPath();
         $path = $uri->getPath();
         if (substr($path, -1, 1) == '/') $path .= 'x';
         if (substr($path, -1, 1) == '/') $path .= 'x';
         $path = dirname($path);
         $path = dirname($path);
+        if ($path == DIRECTORY_SEPARATOR) {
+            $path = '/';
+        }
 
 
         $cookie = Zend_Http_Cookie::fromString('foo=bar', (string) $uri);
         $cookie = Zend_Http_Cookie::fromString('foo=bar', (string) $uri);
         if (! $cookie instanceof Zend_Http_Cookie) {
         if (! $cookie instanceof Zend_Http_Cookie) {