Skip to content

Commit

Permalink
Merge pull request #1059 from acrobat/fix-tests-psr7-messages
Browse files Browse the repository at this point in the history
Fix ResponseMediator test after update in guzzle/psr-7
  • Loading branch information
acrobat authored Mar 24, 2022
2 parents ad546e2 + 5629ba3 commit c258cc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true
"phpstan/extension-installer": true,
"composer/package-versions-deprecated": true
}
}
}
15 changes: 5 additions & 10 deletions test/Github/Tests/HttpClient/Message/ResponseMediatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,13 @@ public function testGetContentInvalidJson()

public function testGetPagination()
{
$header = <<<'TEXT'
<http://github.com>; rel="first",
<http://github.com>; rel="next",
<http://github.com>; rel="prev",
<http://github.com>; rel="last",
TEXT;
$header = '<https://github.com>; rel="first",<https://github.com>; rel="next",<https://github.com>; rel="prev",<https://github.com>; rel="last",';

$pagination = [
'first' => 'http://github.com',
'next' => 'http://github.com',
'prev' => 'http://github.com',
'last' => 'http://github.com',
'first' => 'https://github.com',
'next' => 'https://github.com',
'prev' => 'https://github.com',
'last' => 'https://github.com',
];

// response mock
Expand Down

0 comments on commit c258cc0

Please sign in to comment.