Skip to content

Commit

Permalink
Merge branch 'hotfix/php56-post-payload' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Jul 31, 2016
2 parents e91fade + c3f67c1 commit 3397bce
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/DriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,14 @@ public function testPOSTPayload()
{
$uniq = uniqid();
$payload = json_encode(array('key' => $uniq));
$url = 'http://httpbin.org/post?key=value';

$result = $this->_getClient()->request('http://mockbin.org/request', $payload, 'post', array(
'verify' => false, // For travis ... =(
));
$result = $this->_getClient()->request($url, $payload, 'post');

$body = $result->getJSON();
isSame($payload, $body->find('postData.text'));

isSame('', $body->find('form.' . $payload));
isSame('value', $body->find('args.key'));
}

public function testAllMethods()
Expand Down

0 comments on commit 3397bce

Please sign in to comment.