public function FunctionsTest::testFactoryCreatesFromObjectWithToString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testFactoryCreatesFromObjectWithToString()
File
- vendor/
guzzlehttp/ psr7/ tests/ FunctionsTest.php, line 380
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testFactoryCreatesFromObjectWithToString() {
$r = new HasToString();
$s = Psr7\stream_for($r);
$this
->assertInstanceOf('GuzzleHttp\\Psr7\\Stream', $s);
$this
->assertEquals('foo', (string) $s);
}