You are here

public function LimitStreamTest::testGetContentsIsBasedOnSubset in Zircon Profile 8

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

File

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

Class

LimitStreamTest
@covers GuzzleHttp\Psr7\LimitStream

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testGetContentsIsBasedOnSubset() {
  $body = new LimitStream(Psr7\stream_for('foobazbar'), 3, 3);
  $this
    ->assertEquals('baz', $body
    ->getContents());
}