public function LimitStreamTest::testReturnsSubsetWhenCastToString in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/psr7/tests/LimitStreamTest.php \GuzzleHttp\Tests\Psr7\LimitStreamTest::testReturnsSubsetWhenCastToString()
File
- vendor/
guzzlehttp/ psr7/ tests/ LimitStreamTest.php, line 39
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testReturnsSubsetWhenCastToString() {
$body = Psr7\stream_for('foo_baz_bar');
$limited = new LimitStream($body, 3, 4);
$this
->assertEquals('baz', (string) $limited);
}