Merge pull request #5 from typhonius/add-query-to-get
Adds the query parameter to the guzzle call for GET requests.
This commit is contained in:
@@ -34,7 +34,7 @@ class GuzzleTest extends PHPUnit_Framework_TestCase
|
||||
$body = json_decode($response->getBody());
|
||||
$this->assertEquals("Test", $body->headers->{"X-Testing"});
|
||||
|
||||
$response = $this->client->get('https://httpbin.org/get', ['X-Another-Test' => 'Test2']);
|
||||
$response = $this->client->get('https://httpbin.org/get', [], ['X-Another-Test' => 'Test2']);
|
||||
$body = json_decode($response->getBody());
|
||||
$this->assertEquals("Test2", $body->headers->{"X-Another-Test"});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user