@@ -200,20 +200,20 @@ public function testHttp2PushVulcain()
200200
201201 $ client ->reset ();
202202
203- $ expected = [
204- ' Request: "GET https://127.0.0.1:3000/json" ' ,
205- ' Queueing pushed response: "https://127.0.0.1:3000/json/1" ' ,
206- ' Queueing pushed response: "https://127.0.0.1:3000/json/2" ' ,
207- ' Queueing pushed response: "https://127.0.0.1:3000/json/3" ' ,
208- ' Response: "200 https://127.0.0.1:3000/json" ' ,
209- ' Accepting pushed response: "GET https://127.0.0.1:3000/json/1" ' ,
210- ' Response: "200 https://127.0.0.1:3000/json/1" ' ,
211- ' Accepting pushed response: "GET https://127.0.0.1:3000/json/2" ' ,
212- ' Response: "200 https://127.0.0.1:3000/json/2" ' ,
213- ' Accepting pushed response: "GET https://127.0.0.1:3000/json/3" ' ,
214- ' Response: "200 https://127.0.0.1:3000/json/3" ' ,
215- ] ;
216- $ this ->assertSame ($ expected , $ logger ->logs );
203+ $ expected = <<<EOTXT
204+ Request: "GET https://127.0.0.1:3000/json"
205+ Queueing pushed response: "https://127.0.0.1:3000/json/1"
206+ Queueing pushed response: "https://127.0.0.1:3000/json/2"
207+ Queueing pushed response: "https://127.0.0.1:3000/json/3"
208+ Response: "200 https://127.0.0.1:3000/json" %f seconds
209+ Accepting pushed response: "GET https://127.0.0.1:3000/json/1"
210+ Response: "200 https://127.0.0.1:3000/json/1" %f seconds
211+ Accepting pushed response: "GET https://127.0.0.1:3000/json/2"
212+ Response: "200 https://127.0.0.1:3000/json/2" %f seconds
213+ Accepting pushed response: "GET https://127.0.0.1:3000/json/3"
214+ Response: "200 https://127.0.0.1:3000/json/3" %f seconds
215+ EOTXT ;
216+ $ this ->assertStringMatchesFormat ($ expected , implode ( "\n" , $ logger ->logs ) );
217217 }
218218
219219 public function testPause ()
@@ -288,19 +288,19 @@ public function testHttp2PushVulcainWithUnusedResponse()
288288
289289 $ client ->reset ();
290290
291- $ expected = [
292- ' Request: "GET https://127.0.0.1:3000/json" ' ,
293- ' Queueing pushed response: "https://127.0.0.1:3000/json/1" ' ,
294- ' Queueing pushed response: "https://127.0.0.1:3000/json/2" ' ,
295- ' Queueing pushed response: "https://127.0.0.1:3000/json/3" ' ,
296- ' Response: "200 https://127.0.0.1:3000/json" ' ,
297- ' Accepting pushed response: "GET https://127.0.0.1:3000/json/1" ' ,
298- ' Response: "200 https://127.0.0.1:3000/json/1" ' ,
299- ' Accepting pushed response: "GET https://127.0.0.1:3000/json/2" ' ,
300- ' Response: "200 https://127.0.0.1:3000/json/2" ' ,
301- ' Unused pushed response: "https://127.0.0.1:3000/json/3" ' ,
302- ] ;
303- $ this ->assertSame ($ expected , $ logger ->logs );
291+ $ expected = <<<EOTXT
292+ Request: "GET https://127.0.0.1:3000/json"
293+ Queueing pushed response: "https://127.0.0.1:3000/json/1"
294+ Queueing pushed response: "https://127.0.0.1:3000/json/2"
295+ Queueing pushed response: "https://127.0.0.1:3000/json/3"
296+ Response: "200 https://127.0.0.1:3000/json" %f seconds
297+ Accepting pushed response: "GET https://127.0.0.1:3000/json/1"
298+ Response: "200 https://127.0.0.1:3000/json/1" %f seconds
299+ Accepting pushed response: "GET https://127.0.0.1:3000/json/2"
300+ Response: "200 https://127.0.0.1:3000/json/2" %f seconds
301+ Unused pushed response: "https://127.0.0.1:3000/json/3"
302+ EOTXT ;
303+ $ this ->assertStringMatchesFormat ($ expected , implode ( "\n" , $ logger ->logs ) );
304304 }
305
8C1A
code>305
306306 public function testDnsFailure ()
0 commit comments