You are here

public function StreamDecoratorTraitTest::testGetsContents in Zircon Profile 8.0

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

File

vendor/guzzlehttp/psr7/tests/StreamDecoratorTraitTest.php, line 81

Class

StreamDecoratorTraitTest
@covers GuzzleHttp\Psr7\StreamDecoratorTrait

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testGetsContents() {
  $this
    ->assertEquals('foo', $this->b
    ->getContents());
  $this
    ->assertEquals('', $this->b
    ->getContents());
  $this->b
    ->seek(1);
  $this
    ->assertEquals('oo', $this->b
    ->getContents(1));
}