PhlyTest\Http\StreamTest::testCloseDoesNothingAfterDetach PHP Method

testCloseDoesNothingAfterDetach() public method

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