You are here

public function LimitStreamTest::testCanGetContentsWithoutSeeking in Zircon Profile 8.0

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

File

vendor/guzzlehttp/psr7/tests/LimitStreamTest.php, line 124

Class

LimitStreamTest
@covers GuzzleHttp\Psr7\LimitStream

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testCanGetContentsWithoutSeeking() {
  $a = Psr7\stream_for('foo_bar');
  $b = new NoSeekStream($a);
  $c = new LimitStream($b);
  $this
    ->assertEquals('foo_bar', $c
    ->getContents());
}