コード例 #1
0
 /**
  * Deletes the remember-me cookie
  */
 public function remove()
 {
     if ($this->cookie->has($this->name)) {
         $this->cookie->remove($this->name);
     }
 }
コード例 #2
0
 public function testRemove()
 {
     $this->cookie = $this->cookieJar->remove('aCookie');
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Cookie', $this->cookie);
     $this->assertTrue($this->cookie->isCleared());
 }