/** * Method to test head(). * * @return void * * @covers Windwalker\Http\HttpClient::head */ public function testHead() { $url = 'http://example.com/?foo=bar'; $headers = array('X-Foo' => 'Bar'); $this->instance->head($url, $headers); $this->assertEquals('HEAD', $this->transport->request->getMethod()); $this->assertEquals($url, $this->transport->request->getRequestTarget()); $this->assertEquals('Bar', $this->transport->request->getHeaderLine('X-Foo')); }