コード例 #1
0
ファイル: Request.php プロジェクト: settermjd/piston
 public function clearCookie($key)
 {
     $this->cookieJar->clear($key);
     return $this->withCookieParams($this->cookieJar->all());
 }
コード例 #2
0
ファイル: CookieJarTest.php プロジェクト: refinery29/piston
 public function testCanClearCookieEvenIfKeyDoesNotExist()
 {
     $key = $this->getFaker()->word;
     $cookieJar = new CookieJar();
     $cookieJar->clear($key);
     $this->assertSame([], $cookieJar->all());
 }