Fix assertInternalType deprecation in phpunit 9

This commit is contained in:
Jérémy Derussé 2019-08-01 12:54:54 +02:00
parent 7f62b7b8f9
commit 51ba6651aa
No known key found for this signature in database
GPG Key ID: 2083FA5758C473D2

View File

@ -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 @@ abstract class HttpClientTestCase extends BaseHttpClientTestCase
$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));
}