You are here

public function LimitStreamTest::testClaimsConsumedWhenReadLimitIsReached in Zircon Profile 8.0

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

File

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

Class

LimitStreamTest
@covers GuzzleHttp\Psr7\LimitStream

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testClaimsConsumedWhenReadLimitIsReached() {
  $this
    ->assertFalse($this->body
    ->eof());
  $this->body
    ->read(1000);
  $this
    ->assertTrue($this->body
    ->eof());
}