expectException(\Error::class); (new BasicResolver)->resolve("abc.de", Record::TXT); }); } public function testIpAsArgumentWithIPv4Restriction() { Loop::run(function () { $this->expectException(ResolutionException::class); yield (new BasicResolver)->resolve("::1", Record::A); }); } public function testIpAsArgumentWithIPv6Restriction() { Loop::run(function () { $this->expectException(ResolutionException::class); yield (new BasicResolver)->resolve("127.0.0.1", Record::AAAA); }); } }