lithium\tests\mocks\net\http\MockSocket::open PHP Method

open() public method

public open ( array $options = [] )
$options array
    public function open(array $options = array())
    {
        parent::open($options);
        return true;
    }

Usage Example

 public function testInitialization()
 {
     $socket = new MockSocket();
     $socket->open(array('test' => true));
     $config = $socket->config();
     $this->assertTrue($config['test']);
 }