You are here

public function StreamDecoratorTraitTest::setUp in Zircon Profile 8

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

File

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

Class

StreamDecoratorTraitTest
@covers GuzzleHttp\Psr7\StreamDecoratorTrait

Namespace

GuzzleHttp\Tests\Psr7

Code

public function setUp() {
  $this->c = fopen('php://temp', 'r+');
  fwrite($this->c, 'foo');
  fseek($this->c, 0);
  $this->a = Psr7\stream_for($this->c);
  $this->b = new Str($this->a);
}