Ejemplo n.º 1
0
 public function testConnectTimeoutFailUnbound()
 {
     $socket = $this->factory->createTcp4();
     $this->setExpectedException('Socket\\Raw\\Exception', '', SOCKET_ECONNREFUSED);
     $socket->connectTimeout('localhost:2', 0.5);
 }
Ejemplo n.º 2
0
 public function testCreateTcp4()
 {
     $socket = $this->factory->createTcp4();
     $this->assertInstanceOf('Socket\\Raw\\Socket', $socket);
 }