@@ -316,7 +316,7 @@ public function testGetSvg(): void
316316 $ headers = xdebug_get_headers ();
317317 $ this ->assertEquals (
318318 'Content-Disposition: inline; filename="114f33435c265345f7c6cdf673922292.svg"; ' ,
319- $ headers [5 ]
319+ strval ( $ headers [5 ])
320320 );
321321
322322 // invalid filename
@@ -340,7 +340,7 @@ public function testGetSvg(): void
340340 $ headers = xdebug_get_headers ();
341341 $ this ->assertEquals (
342342 'Content-Disposition: inline; filename="test_SVG_filename-001.svg"; ' ,
343- $ headers [5 ]
343+ strval ( $ headers [5 ])
344344 );
345345 }
346346
@@ -362,9 +362,9 @@ public function testGetPng(): void
362362 $ this ->assertNotFalse ($ png );
363363 $ this ->assertEquals ('PNG ' , substr ($ png , 1 , 3 ));
364364 $ headers = xdebug_get_headers ();
365- $ this ->assertStringContainsString (
366- 'Content-Disposition: inline; filename=" ' ,
367- $ headers [5 ]
365+ $ this ->assertEquals (
366+ 'Content-Disposition: inline; filename="474e4eb4cfd145be38fe1657909b21b2.png"; ' ,
367+ strval ( $ headers [5 ])
368368 );
369369
370370 // invalid filename
@@ -374,9 +374,9 @@ public function testGetPng(): void
374374 $ this ->assertNotFalse ($ png );
375375 $ this ->assertEquals ('PNG ' , substr ($ png , 1 , 3 ));
376376 $ headers = xdebug_get_headers ();
377- $ this ->assertStringContainsString (
378- 'Content-Disposition: inline; filename=" ' ,
379- $ headers [5 ]
377+ $ this ->assertEquals (
378+ 'Content-Disposition: inline; filename="474e4eb4cfd145be38fe1657909b21b2.png"; ' ,
379+ strval ( $ headers [5 ])
380380 );
381381
382382 // valid filename
@@ -388,7 +388,7 @@ public function testGetPng(): void
388388 $ headers = xdebug_get_headers ();
389389 $ this ->assertEquals (
390390 'Content-Disposition: inline; filename="test_PNG_filename-001.png"; ' ,
391- $ headers [5 ]
391+ strval ( $ headers [5 ])
392392 );
393393 }
394394}
0 commit comments