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

testWriteAndRead() public method

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