You are here

public function LimitStreamTest::testReturnsSubsetWhenCastToString in Zircon Profile 8

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

File

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

Class

LimitStreamTest
@covers GuzzleHttp\Psr7\LimitStream

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testReturnsSubsetWhenCastToString() {
  $body = Psr7\stream_for('foo_baz_bar');
  $limited = new LimitStream($body, 3, 4);
  $this
    ->assertEquals('baz', (string) $limited);
}