You are here

public function LimitStreamTest::testLengthLessOffsetWhenNoLimitSize in Zircon Profile 8.0

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

File

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

Class

LimitStreamTest
@covers GuzzleHttp\Psr7\LimitStream

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testLengthLessOffsetWhenNoLimitSize() {
  $a = Psr7\stream_for('foo_bar');
  $b = new LimitStream($a, -1, 4);
  $this
    ->assertEquals(3, $b
    ->getSize());
}