public function testIsSecure() { $cookie = new Cookie('foo', 'bar', 3600, '/', '.myfoodomain.com', true); $this ->assertTrue($cookie ->isSecure(), '->isSecure() returns whether the cookie is transmitted over HTTPS'); }