public function setUp() { $this->_port = mt_rand($this->_ports[0], $this->_ports[1]); $this->_listenStream = new Ext_Io_Net_Stream(new Ext_Io_ConnectionString('tcp', '127.0.0.1', $this->_port)); $this->_clientStream = new Ext_Io_Net_Stream(new Ext_Io_ConnectionString('tcp', '127.0.0.1', $this->_port)); $this->_listenStream->listen(); $this->_clientStream->connect(5); $this->_serverStream = $this->_listenStream->accept(5); }