lithium\tests\integration\net\socket\StreamTest::testClose PHP Method

testClose() public method

public testClose ( )
    public function testClose()
    {
        $stream = new Stream($this->_testConfig);
        $result = $stream->open();
        $this->assertNotEmpty($result);
        $result = $stream->close();
        $this->assertTrue($result);
        $result = $stream->resource();
        $this->assertNotInternalType('resource', $result);
    }