PhlyTest\Http\StreamTest::testGetMetadataReturnsAllMetadataWhenNoKeyPresent PHP Method

testGetMetadataReturnsAllMetadataWhenNoKeyPresent() public method

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