コード例 #1
0
ファイル: HttpClientTest.php プロジェクト: im286er/windwalker
 /**
  * Method to test options().
  *
  * @return void
  *
  * @covers Windwalker\Http\HttpClient::options
  */
 public function testOptions()
 {
     $url = 'http://example.com/?foo=bar';
     $headers = array('X-Foo' => 'Bar');
     $this->instance->options($url, $headers);
     $this->assertEquals('OPTIONS', $this->transport->request->getMethod());
     $this->assertEquals($url, $this->transport->request->getRequestTarget());
     $this->assertEquals('Bar', $this->transport->request->getHeaderLine('X-Foo'));
 }