Example #1
0
 /**
  * @covers Guzzle\Http\Client::expandTemplate
  */
 public function testAllowsCustomVariablesWhenExpandingTemplates()
 {
     $client = new Client('http://test.com', array('test' => 'hi'));
     $uri = $client->expandTemplate('http://{test}{?query*}', array('query' => array('han' => 'solo')));
     $this->assertEquals('http://hi?han=solo', $uri);
 }