Example #1
0
 public function clearCookie($key)
 {
     $this->cookieJar->clear($key);
     return $this->withCookieParams($this->cookieJar->all());
 }
Example #2
0
 public function testCanClearCookieEvenIfKeyDoesNotExist()
 {
     $key = $this->getFaker()->word;
     $cookieJar = new CookieJar();
     $cookieJar->clear($key);
     $this->assertSame([], $cookieJar->all());
 }