diff --git a/src/Symfony/Component/HttpClient/Tests/HttpClientTestCase.php b/src/Symfony/Component/HttpClient/Tests/HttpClientTestCase.php index 0f5b1677574ec..40a8f802781b1 100644 --- a/src/Symfony/Component/HttpClient/Tests/HttpClientTestCase.php +++ b/src/Symfony/Component/HttpClient/Tests/HttpClientTestCase.php @@ -11,10 +11,13 @@ namespace Symfony\Component\HttpClient\Tests; +use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait; use Symfony\Contracts\HttpClient\Test\HttpClientTestCase as BaseHttpClientTestCase; abstract class HttpClientTestCase extends BaseHttpClientTestCase { + use ForwardCompatTestTrait; + public function testToStream() { $client = $this->getHttpClient(__FUNCTION__); @@ -28,7 +31,7 @@ public function testToStream() $this->assertFalse(feof($stream)); $this->assertTrue(rewind($stream)); - $this->assertInternalType('array', json_decode(fread($stream, 1024), true)); + $this->assertIsArray(json_decode(fread($stream, 1024), true)); $this->assertSame('', fread($stream, 1)); $this->assertTrue(feof($stream)); }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: