Skip to content

Commit 99a1741

Browse files
committed
fix merge
1 parent 8d60e07 commit 99a1741

File tree

1 file changed

+0
-53
lines changed

1 file changed

+0
-53
lines changed

Tests/CurlHttpClientTest.php

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -49,59 +49,6 @@ public function testBindToPort()
4949
self::assertSame(9876, $curlInfo['local_port']);
5050
}
5151

52-
/**
53-
* @requires PHP 7.2.17
54-
*/
55-
public function testHttp2PushVulcain()
56-
{
57-
$client = $this->getVulcainClient();
58-
$logger = new TestLogger();
59-
$client->setLogger($logger);
60-
61-
$responseAsArray = $client->request('GET', 'https://127.0.0.1:3000/json', [
62-
'headers' => [
63-
'Preload' => '/documents/*/id',
64-
],
65-
])->toArray();
66-
67-
foreach ($responseAsArray['documents'] as $document) {
68-
$client->request('GET', 'https://127.0.0.1:3000'.$document['id'])->toArray();
69-
}
70-
71-
$client->reset();
72-
73-
$expected = [
74-
'Request: "GET https://127.0.0.1:3000/json"',
75-
'Queueing pushed response: "https://127.0.0.1:3000/json/1"',
76-
'Queueing pushed response: "https://127.0.0.1:3000/json/2"',
77-
'Queueing pushed response: "https://127.0.0.1:3000/json/3"',
78-
'Response: "200 https://127.0.0.1:3000/json"',
79-
'Accepting pushed response: "GET https://127.0.0.1:3000/json/1"',
80-
'Response: "200 https://127.0.0.1:3000/json/1"',
81-
'Accepting pushed response: "GET https://127.0.0.1:3000/json/2"',
82-
'Response: "200 https://127.0.0.1:3000/json/2"',
83-
'Accepting pushed response: "GET https://127.0.0.1:3000/json/3"',
84-
'Response: "200 https://127.0.0.1:3000/json/3"',
85-
];
86-
$this->assertSame($expected, $logger->logs);
87-
}
88-
89-
/**
90-
* @requires PHP 7.2.17
91-
*/
92-
public function testHttp2PushVulcainWithUnusedResponse()
93-
{
94-
$client = $this->getVulcainClient();
95-
$logger = new TestLogger();
96-
$client->setLogger($logger);
97-
98-
$responseAsArray = $client->request('GET', 'https://127.0.0.1:3000/json', [
99-
'headers' => [
100-
'Preload' => '/documents/*/id',
101-
],
102-
])->toArray();
103-
}
104-
10552
public function testTimeoutIsNotAFatalError()
10653
{
10754
if ('\\' === \DIRECTORY_SEPARATOR) {

0 commit comments

Comments
 (0)