You are here

public function CachingStreamTest::testUsesRemoteSizeIfPossible in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/tests/CachingStreamTest.php \GuzzleHttp\Tests\Psr7\CachingStreamTest::testUsesRemoteSizeIfPossible()

File

vendor/guzzlehttp/psr7/tests/CachingStreamTest.php, line 28

Class

CachingStreamTest
@covers GuzzleHttp\Psr7\CachingStream

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testUsesRemoteSizeIfPossible() {
  $body = Psr7\stream_for('test');
  $caching = new CachingStream($body);
  $this
    ->assertEquals(4, $caching
    ->getSize());
}