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(array(), $b->getMetadata()); }