Loading core/tests/Drupal/Tests/BrowserHtmlDebugTrait.php +3 −1 Original line number Diff line number Diff line Loading @@ -182,7 +182,9 @@ protected function getResponseLogHandler() { /** @var \Psr\Http\Message\StreamInterface $stream */ $stream = $response->getBody(); // Get the response body as a string. // Get the response body as a string. The response stream is set // to the sink, which defaults to a readable temp stream but can // be overridden by setting $options['sink']. $body = $stream->isReadable() ? (string) $stream : 'Response is not readable.'; Loading Loading
core/tests/Drupal/Tests/BrowserHtmlDebugTrait.php +3 −1 Original line number Diff line number Diff line Loading @@ -182,7 +182,9 @@ protected function getResponseLogHandler() { /** @var \Psr\Http\Message\StreamInterface $stream */ $stream = $response->getBody(); // Get the response body as a string. // Get the response body as a string. The response stream is set // to the sink, which defaults to a readable temp stream but can // be overridden by setting $options['sink']. $body = $stream->isReadable() ? (string) $stream : 'Response is not readable.'; Loading