diff --git a/src/Symfony/Component/HttpClient/Response/AmpResponse.php b/src/Symfony/Component/HttpClient/Response/AmpResponse.php index e5d0bb213f..c553dad6de 100644 --- a/src/Symfony/Component/HttpClient/Response/AmpResponse.php +++ b/src/Symfony/Component/HttpClient/Response/AmpResponse.php @@ -200,7 +200,7 @@ final class AmpResponse implements ResponseInterface $options = null; - $activity[$id] = [new FirstChunk()]; + $activity[$id][] = new FirstChunk(); if ('HEAD' === $response->getRequest()->getMethod() || \in_array($info['http_code'], [204, 304], true)) { $activity[$id][] = null; diff --git a/src/Symfony/Component/HttpClient/Tests/AmpHttpClientTest.php b/src/Symfony/Component/HttpClient/Tests/AmpHttpClientTest.php index c3bdbed0aa..e17b45a0ce 100644 --- a/src/Symfony/Component/HttpClient/Tests/AmpHttpClientTest.php +++ b/src/Symfony/Component/HttpClient/Tests/AmpHttpClientTest.php @@ -25,13 +25,4 @@ class AmpHttpClientTest extends HttpClientTestCase { $this->markTestSkipped('A real proxy server would be needed.'); } - - public function testInformationalResponseStream() - { - if (getenv('TRAVIS_PULL_REQUEST')) { - $this->markTestIncomplete('This test always fails on Travis.'); - } - - parent::testInformationalResponseStream(); - } }