Example #1
0
 /**
  * @covers Guzzle\Http\Client::setUriTemplate
  * @covers Guzzle\Http\Client::getUriTemplate
  */
 public function testAllowsUriTemplateInjection()
 {
     $client = new Client('http://test.com', array('path' => array('foo', 'bar'), 'query' => 'hi there'));
     $a = $client->getUriTemplate();
     $this->assertSame($a, $client->getUriTemplate());
     $client->setUriTemplate(new UriTemplate());
     $this->assertNotSame($a, $client->getUriTemplate());
 }