@@ -446,7 +446,7 @@ public function testPostJson()
446
446
447
447
$ body = $ response ->toArray ();
448
448
449
- $ this ->assertContains ('json ' , $ body ['content-type ' ]);
449
+ $ this ->assertStringContainsString ('json ' , $ body ['content-type ' ]);
450
450
unset($ body ['content-type ' ]);
451
451
$ this ->assertSame (['foo ' => 'bar ' , 'REQUEST_METHOD ' => 'POST ' ], $ body );
452
452
}
@@ -705,11 +705,11 @@ public function testAutoEncodingRequest()
705
705
$ headers = $ response ->getHeaders ();
706
706
707
707
$ this ->assertSame (['Accept-Encoding ' ], $ headers ['vary ' ]);
708
- $ this ->assertContains ('gzip ' , $ headers ['content-encoding ' ][0 ]);
708
+ $ this ->assertStringContainsString ('gzip ' , $ headers ['content-encoding ' ][0 ]);
709
709
710
710
$ body = $ response ->toArray ();
711
711
712
- $ this ->assertContains ('gzip ' , $ body ['HTTP_ACCEPT_ENCODING ' ]);
712
+ $ this ->assertStringContainsString ('gzip ' , $ body ['HTTP_ACCEPT_ENCODING ' ]);
713
713
}
714
714
715
715
public function testBaseUri ()
@@ -757,7 +757,7 @@ public function testUserlandEncodingRequest()
757
757
$ headers = $ response ->getHeaders ();
758
758
759
759
$ this ->assertSame (['Accept-Encoding ' ], $ headers ['vary ' ]);
760
- $ this ->assertContains ('gzip ' , $ headers ['content-encoding ' ][0 ]);
760
+ $ this ->assertStringContainsString ('gzip ' , $ headers ['content-encoding ' ][0 ]);
761
761
762
762
$ body = $ response ->getContent ();
763
763
$ this ->assertSame ("\x1F" , $ body [0 ]);
0 commit comments