You are here

public function FunctionsTest::testCreatesWithFactory in Zircon Profile 8

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

File

vendor/guzzlehttp/psr7/tests/FunctionsTest.php, line 352

Class

FunctionsTest

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testCreatesWithFactory() {
  $stream = Psr7\stream_for('foo');
  $this
    ->assertInstanceOf('GuzzleHttp\\Psr7\\Stream', $stream);
  $this
    ->assertEquals('foo', $stream
    ->getContents());
  $stream
    ->close();
}