You are here

public function LimitStreamTest::testThrowsWhenCurrentGreaterThanOffsetSeek in Zircon Profile 8

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

@expectedException \RuntimeException @expectedExceptionMessage Could not seek to stream offset 2

File

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

Class

LimitStreamTest
@covers GuzzleHttp\Psr7\LimitStream

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testThrowsWhenCurrentGreaterThanOffsetSeek() {
  $a = Psr7\stream_for('foo_bar');
  $b = new NoSeekStream($a);
  $c = new LimitStream($b);
  $a
    ->getContents();
  $c
    ->setOffset(2);
}