public function testApiGetMetadata_ReturnsValidMetadata()
{
$stream = $this->createStreamMock();
$expected = ['wrapper_type' => 'PHP', 'stream_type' => 'TEMP', 'mode' => 'w+b', 'unread_bytes' => 0, 'seekable' => true, 'uri' => 'php://temp'];
$this->assertEquals($expected, $stream->getMetadata());
}