浏览代码

[BrowserKit] renamed Cookie::isHttponly() to Cookie::isHttpOnly()

Hugo Hamon 14 年之前
父节点
当前提交
8182913f1f

+ 1 - 1
src/Symfony/Component/BrowserKit/Cookie.php

@@ -223,7 +223,7 @@ class Cookie
      *
      * @return Boolean The cookie httponly flag
      */
-    public function isHttponly()
+    public function isHttpOnly()
     {
         return $this->httponly;
     }

+ 2 - 2
tests/Symfony/Tests/Component/BrowserKit/CookieTest.php

@@ -99,10 +99,10 @@ class CookieTest extends \PHPUnit_Framework_TestCase
     public function testIsHttponly()
     {
         $cookie = new Cookie('foo', 'bar');
-        $this->assertFalse($cookie->isHttponly(), '->isHttponly() returns false if not defined');
+        $this->assertFalse($cookie->isHttpOnly(), '->isHttpOnly() returns false if not defined');
 
         $cookie = new Cookie('foo', 'bar', 0, '/', 'foo.com', false, true);
-        $this->assertTrue($cookie->isHttponly(), '->isHttponly() returns the cookie httponly flag');
+        $this->assertTrue($cookie->isHttpOnly(), '->isHttpOnly() returns the cookie httponly flag');
     }
 
     public function testGetExpiresTime()