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

testAllMethodsNoConnection() public method

    public function testAllMethodsNoConnection()
    {
        $stream = new Stream(array('scheme' => null));
        $this->assertFalse($stream->open());
        $this->assertTrue($stream->close());
        $this->assertFalse($stream->timeout(2));
        $this->assertFalse($stream->encoding('UTF-8'));
        $this->assertFalse($stream->write(null));
        $this->assertFalse($stream->read());
        $this->assertTrue($stream->eof());
        $this->assertNull($stream->send(new Request()));
    }