assertNotFalse( $inAddr, "Server name $name did not resolve to a valid IP address" ); if (isset($inAddr[15])) { $this->assertSame( \Amp\Dns\MODE_INET6, $mode, "Returned mode parameter did not match expected MODE_INET6" ); } else { $this->assertSame( \Amp\Dns\MODE_INET4, $mode, "Returned mode parameter did not match expected MODE_INET4" ); } } }); } }