You are here

public function LimitStreamTest::testReturnsSpecificSubsetOBodyWhenCastToString in Zircon Profile 8

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

File

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

Class

LimitStreamTest
@covers GuzzleHttp\Psr7\LimitStream

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testReturnsSpecificSubsetOBodyWhenCastToString() {
  $body = Psr7\stream_for('0123456789abcdef');
  $limited = new LimitStream($body, 3, 10);
  $this
    ->assertEquals('abc', (string) $limited);
}