public function testIsHttponly() { $cookie = new Cookie('foo', 'bar'); $this->assertFalse($cookie->isHttponly(), '->isHttponly() returns false if not defined'); $cookie = new Cookie('foo', 'bar', 0, '/', 'foo.com', false, true); $this->assertTrue($cookie->isHttponly(), '->isHttponly() returns the cookie httponly flag'); }