Skip to content

Commit c258cc0

Browse files
authored
Merge pull request KnpLabs#1059 from acrobat/fix-tests-psr7-messages
Fix ResponseMediator test after update in guzzle/psr-7
2 parents ad546e2 + 5629ba3 commit c258cc0

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
},
5858
"config": {
5959
"allow-plugins": {
60-
"phpstan/extension-installer": true
60+
"phpstan/extension-installer": true,
61+
"composer/package-versions-deprecated": true
6162
}
6263
}
6364
}

test/Github/Tests/HttpClient/Message/ResponseMediatorTest.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,13 @@ public function testGetContentInvalidJson()
5454

5555
public function testGetPagination()
5656
{
57-
$header = <<<'TEXT'
58-
<http://github.com>; rel="first",
59-
<http://github.com>; rel="next",
60-
<http://github.com>; rel="prev",
61-
<http://github.com>; rel="last",
62-
TEXT;
57+
$header = '<https://github.com>; rel="first",<https://github.com>; rel="next",<https://github.com>; rel="prev",<https://github.com>; rel="last",';
6358

6459
$pagination = [
65-
'first' => 'http://github.com',
66-
'next' => 'http://github.com',
67-
'prev' => 'http://github.com',
68-
'last' => 'http://github.com',
60+
'first' => 'https://github.com',
61+
'next' => 'https://github.com',
62+
'prev' => 'https://github.com',
63+
'last' => 'https://github.com',
6964
];
7065

7166
// response mock

0 commit comments

Comments
 (0)