소스 검색

Test in Zend_Http_CookieJarTest fixed

Frank 12 년 전
부모
커밋
9f2a5df696
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tests/Zend/Http/CookieJarTest.php

+ 1 - 1
tests/Zend/Http/CookieJarTest.php

@@ -402,7 +402,7 @@ class Zend_Http_CookieJarTest extends PHPUnit_Framework_TestCase
 
 
         $cookies = $jar->getMatchingCookies('http://www.foo.com/path/file.txt', true, Zend_Http_CookieJar::COOKIE_STRING_ARRAY);
         $cookies = $jar->getMatchingCookies('http://www.foo.com/path/file.txt', true, Zend_Http_CookieJar::COOKIE_STRING_ARRAY);
         $this->assertTrue(is_array($cookies), '$cookies is expected to be an array, but it is not');
         $this->assertTrue(is_array($cookies), '$cookies is expected to be an array, but it is not');
-        $this->assertTrue('string', $cookies[0], '$cookies[0] is expected to be a string');;
+        $this->assertTrue(is_string($cookies[0]), '$cookies[0] is expected to be a string');;
 
 
         $cookies = $jar->getMatchingCookies('http://www.foo.com/path/file.txt', true, Zend_Http_CookieJar::COOKIE_STRING_CONCAT);
         $cookies = $jar->getMatchingCookies('http://www.foo.com/path/file.txt', true, Zend_Http_CookieJar::COOKIE_STRING_CONCAT);
         $this->assertTrue(is_string($cookies), '$cookies is expected to be a string');
         $this->assertTrue(is_string($cookies), '$cookies is expected to be a string');