public function StreamTest::testConvertsToString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/StreamTest.php \GuzzleHttp\Tests\Psr7\StreamTest::testConvertsToString()
File
- vendor/
guzzlehttp/ psr7/ tests/ StreamTest.php, line 43
Class
- StreamTest
- @covers GuzzleHttp\Psr7\Stream
Namespace
GuzzleHttp\Tests\Psr7Code
public function testConvertsToString() {
$handle = fopen('php://temp', 'w+');
fwrite($handle, 'data');
$stream = new Stream($handle);
$this
->assertEquals('data', (string) $stream);
$this
->assertEquals('data', (string) $stream);
$stream
->close();
}