Exemple #1
0
 /**
  * @test
  */
 public function connectAndAcceptWithoutTimeout()
 {
     $testClientStream = new Ext_Io_Net_Stream(new Ext_Io_ConnectionString('tcp', '127.0.0.1', $this->_port));
     $testClientStream->connect();
     $testServerStream = $this->_listenStream->accept();
     $testClientStream->write($this->_testString);
     $this->assertEquals($this->_testString, $testServerStream->read(strlen($this->_testString)));
 }