@@ -49,59 +49,6 @@ public function testBindToPort()
49
49
self ::assertSame (9876 , $ curlInfo ['local_port ' ]);
50
50
}
51
51
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
-
105
52
public function testTimeoutIsNotAFatalError ()
106
53
{
107
54
if ('\\' === \DIRECTORY_SEPARATOR ) {
0 commit comments