You are here

public function CachingStreamTest::testReadsUntilCachedToByte in Zircon Profile 8

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

File

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

Class

CachingStreamTest
@covers GuzzleHttp\Psr7\CachingStream

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testReadsUntilCachedToByte() {
  $this->body
    ->seek(5);
  $this
    ->assertEquals('n', $this->body
    ->read(1));
  $this->body
    ->seek(0);
  $this
    ->assertEquals('t', $this->body
    ->read(1));
}