PhlyTest\Http\StreamTest::testCloseClosesResource PHP Method

testCloseClosesResource() public method

    public function testCloseClosesResource()
    {
        $this->tmpnam = tempnam(sys_get_temp_dir(), 'phly');
        $resource = fopen($this->tmpnam, 'wb+');
        $stream = new Stream($resource);
        $stream->close();
        $this->assertFalse(is_resource($resource));
    }
StreamTest