lithium\tests\integration\net\socket\ContextTest::testWriteAndRead PHP Method

testWriteAndRead() public method

public testWriteAndRead ( )
    public function testWriteAndRead()
    {
        $stream = new Context($this->_testConfig);
        $this->assertInternalType('resource', $stream->open());
        $this->assertInternalType('resource', $stream->resource());
        $this->assertEqual(1, $stream->write());
        $this->assertPattern("/^HTTP/", (string) $stream->read());
    }