Browse Source

Remove removeCookie() method.

Robert Pustułka 8 years ago
parent
commit
c4833ec82b
2 changed files with 0 additions and 32 deletions
  1. 0 13
      src/Http/Client.php
  2. 0 19
      tests/TestCase/Http/ClientTest.php

+ 0 - 13
src/Http/Client.php

@@ -197,19 +197,6 @@ class Client
     }
 
     /**
-     * Removes a cookie from the Client collection.
-     *
-     * @param string $name Cookie name.
-     * @return $this
-     */
-    public function removeCookie($name)
-    {
-        $this->_cookies = $this->_cookies->remove($name);
-
-        return $this;
-    }
-
-    /**
      * Do a GET request.
      *
      * The $data argument supports a special `_content` key

+ 0 - 19
tests/TestCase/Http/ClientTest.php

@@ -654,25 +654,6 @@ class ClientTest extends TestCase
     }
 
     /**
-     * Test removeCookie() method.
-     *
-     * @return void
-     */
-    public function testRemoveCookie()
-    {
-        $cookie = new Cookie('foo');
-        $jar = new CookieCollection([$cookie]);
-        $client = new Client([
-            'cookieJar' => $jar
-        ]);
-
-        $this->assertTrue($client->cookies()->has('foo'));
-
-        $client->removeCookie('foo');
-        $this->assertFalse($client->cookies()->has('foo'));
-    }
-
-    /**
      * test head request with querystring data
      *
      * @return void