public function BufferStreamTest::testHasMetadata in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/psr7/tests/BufferStreamTest.php \GuzzleHttp\Tests\Psr7\BufferStreamTest::testHasMetadata()
File
- vendor/
guzzlehttp/ psr7/ tests/ BufferStreamTest.php, line 8
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testHasMetadata() {
$b = new BufferStream(10);
$this
->assertTrue($b
->isReadable());
$this
->assertTrue($b
->isWritable());
$this
->assertFalse($b
->isSeekable());
$this
->assertEquals(null, $b
->getMetadata('foo'));
$this
->assertEquals(10, $b
->getMetadata('hwm'));
$this
->assertEquals([], $b
->getMetadata());
}