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