You are here

public function CachingStreamTest::testWritesToBufferStream in Zircon Profile 8.0

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

File

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

Class

CachingStreamTest
@covers GuzzleHttp\Psr7\CachingStream

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testWritesToBufferStream() {
  $this->body
    ->read(2);
  $this->body
    ->write('hi');
  $this->body
    ->seek(0);
  $this
    ->assertEquals('tehiing', (string) $this->body);
}