public function testCookieIsCleared() { $cookie = new Cookie('foo', 'bar', time() - 20); $this ->assertTrue($cookie ->isCleared(), '->isCleared() returns true if the cookie has expired'); }