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