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

testSendWithArray() public method

public testSendWithArray ( )
    public function testSendWithArray()
    {
        $stream = new Context($this->_testConfig);
        $this->assertInternalType('resource', $stream->open());
        $result = $stream->send($this->_testConfig, array('response' => 'lithium\\net\\http\\Response'));
        $this->assertInstanceOf('lithium\\net\\http\\Response', $result);
        $this->assertPattern("/^HTTP/", (string) $result);
        $this->assertTrue($stream->eof());
    }