PhlyTest\Http\StreamTest::testGetMetadataReturnsDataForSpecifiedKey PHP Method

testGetMetadataReturnsDataForSpecifiedKey() public method

    public function testGetMetadataReturnsDataForSpecifiedKey()
    {
        $this->tmpnam = tempnam(sys_get_temp_dir(), 'PHLY');
        $resource = fopen($this->tmpnam, 'r+');
        $this->stream->attach($resource);
        $metadata = stream_get_meta_data($resource);
        $expected = $metadata['uri'];
        $test = $this->stream->getMetadata('uri');
        $this->assertEquals($expected, $test);
    }
StreamTest