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