소스 검색

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 년 전
부모
커밋
fd1e16ac5e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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();
         if (substr($path, -1, 1) == '/') $path .= 'x';
         $path = dirname($path);
+        if ($path == DIRECTORY_SEPARATOR) {
+            $path = '/';
+        }
 
         $cookie = Zend_Http_Cookie::fromString('foo=bar', (string) $uri);
         if (! $cookie instanceof Zend_Http_Cookie) {