You are here

public function PumpStreamTest::testInifiniteStreamWrappedInLimitStream in Zircon Profile 8

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

File

vendor/guzzlehttp/psr7/tests/PumpStreamTest.php, line 47

Class

PumpStreamTest

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testInifiniteStreamWrappedInLimitStream() {
  $p = Psr7\stream_for(function () {
    return 'a';
  });
  $s = new LimitStream($p, 5);
  $this
    ->assertEquals('aaaaa', (string) $s);
}