You are here

public function LimitStreamTest::testReturnsSubsetOfEmptyBodyWhenCastToString in Zircon Profile 8

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

File

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

Class

LimitStreamTest
@covers GuzzleHttp\Psr7\LimitStream

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testReturnsSubsetOfEmptyBodyWhenCastToString() {
  $body = Psr7\stream_for('01234567891234');
  $limited = new LimitStream($body, 0, 10);
  $this
    ->assertEquals('', (string) $limited);
}