Skip to content

Commit cc30689

Browse files
MarioBlazeknicolas-grekas
authored andcommitted
Remove deprecated assertContains
1 parent 0e35283 commit cc30689

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Test/HttpClientTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ public function testPostJson()
446446

447447
$body = $response->toArray();
448448

449-
$this->assertContains('json', $body['content-type']);
449+
$this->assertStringContainsString('json', $body['content-type']);
450450
unset($body['content-type']);
451451
$this->assertSame(['foo' => 'bar', 'REQUEST_METHOD' => 'POST'], $body);
452452
}
@@ -705,11 +705,11 @@ public function testAutoEncodingRequest()
705705
$headers = $response->getHeaders();
706706

707707
$this->assertSame(['Accept-Encoding'], $headers['vary']);
708-
$this->assertContains('gzip', $headers['content-encoding'][0]);
708+
$this->assertStringContainsString('gzip', $headers['content-encoding'][0]);
709709

710710
$body = $response->toArray();
711711

712-
$this->assertContains('gzip', $body['HTTP_ACCEPT_ENCODING']);
712+
$this->assertStringContainsString('gzip', $body['HTTP_ACCEPT_ENCODING']);
713713
}
714714

715715
public function testBaseUri()
@@ -757,7 +757,7 @@ public function testUserlandEncodingRequest()
757757
$headers = $response->getHeaders();
758758

759759
$this->assertSame(['Accept-Encoding'], $headers['vary']);
760-
$this->assertContains('gzip', $headers['content-encoding'][0]);
760+
$this->assertStringContainsString('gzip', $headers['content-encoding'][0]);
761761

762762
$body = $response->getContent();
763763
$this->assertSame("\x1F", $body[0]);

0 commit comments

Comments
 (0)