|
@@ -44,6 +44,9 @@ class ClientTest extends \PHPUnit_Framework_TestCase
|
|
$client->request('GET', 'http://www.example.com/');
|
|
$client->request('GET', 'http://www.example.com/');
|
|
$this->assertEquals('Request: /', $client->getResponse()->getContent(), '->doRequest() uses the request handler to make the request');
|
|
$this->assertEquals('Request: /', $client->getResponse()->getContent(), '->doRequest() uses the request handler to make the request');
|
|
$this->assertEquals('www.example.com', $client->getRequest()->getHost(), '->doRequest() uses the request handler to make the request');
|
|
$this->assertEquals('www.example.com', $client->getRequest()->getHost(), '->doRequest() uses the request handler to make the request');
|
|
|
|
+
|
|
|
|
+ $client->request('GET', 'http://www.example.com/?parameter=http://google.com');
|
|
|
|
+ $this->assertEquals('http://www.example.com/?parameter='.urlencode('http://google.com'), $client->getRequest()->getUri(), '->doRequest() uses the request handler to make the request');
|
|
}
|
|
}
|
|
|
|
|
|
public function testGetScript()
|
|
public function testGetScript()
|