Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/http-client-tests'
Browse files Browse the repository at this point in the history
Fix to the HTTP common client tests to address an inconsistency in how the test populated a SUT.
  • Loading branch information
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Client/CommonHttpTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Zend\Http\Client\Adapter\Exception as AdapterException;
use Zend\Http\Request;
use Zend\Http\Response;
use Zend\Stdlib\Parameters;


/**
Expand Down Expand Up @@ -994,7 +995,7 @@ public function testUsesProvidedArgSeparator()
$this->client->setArgSeparator(';');
$request = new Request();
$request->setUri('http://framework.zend.com');
$request->setQuery(array('foo' => 'bar', 'baz' => 'bat'));
$request->setQuery(new Parameters(array('foo' => 'bar', 'baz' => 'bat')));
$this->client->send($request);
$rawRequest = $this->client->getLastRawRequest();
$this->assertContains('?foo=bar;baz=bat', $rawRequest);
Expand Down

0 comments on commit 8903b2d

Please sign in to comment.