Пример #1
0
 /**
  * @depends testSupportsIpv6
  */
 public function testCreateServerIcmp6()
 {
     try {
         $socket = $this->factory->createServer('icmp6://[::1]');
     } catch (Exception $e) {
         if ($e->getCode() === SOCKET_EPERM) {
             // skip if not root
             return $this->markTestSkipped('No access to ICMPv6 socket (only root can do so)');
         }
         throw $e;
     }
     $this->assertInstanceOf('Socket\\Raw\\Socket', $socket);
 }