isHttpOnly() public method

Tells if this cookie should only be used through the HTTP protocol.
public isHttpOnly ( ) : boolean
return boolean State of the "HttpOnly" attribute
 /**
  * @test
  */
 public function isHttpOnlyReturnsHttpOnlyFlag()
 {
     $cookie = new Cookie('foo', 'bar');
     $this->assertTrue($cookie->isHttpOnly());
     $cookie = new Cookie('foo', 'bar', 0, null, 'neos.io', '/', false, false);
     $this->assertFalse($cookie->isHttpOnly());
 }