From 49835e1436c34dd096915eda13b335bbd84098c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Magalh=C3=A3es?= Date: Fri, 5 Oct 2018 16:24:55 +0100 Subject: Remove unstable dns tests --- ext/standard/tests/dns_get_record.phpt | 202 --------------------- ext/standard/tests/network/dns_get_record_caa.phpt | 38 ---- 2 files changed, 240 deletions(-) delete mode 100644 ext/standard/tests/dns_get_record.phpt delete mode 100644 ext/standard/tests/network/dns_get_record_caa.phpt diff --git a/ext/standard/tests/dns_get_record.phpt b/ext/standard/tests/dns_get_record.phpt deleted file mode 100644 index 2ae0acf1db..0000000000 --- a/ext/standard/tests/dns_get_record.phpt +++ /dev/null @@ -1,202 +0,0 @@ ---TEST-- -array dns_get_record ( string $hostname [, int $type = DNS_ANY [, array &$authns [, array &$addtl [, bool &$raw = false ]]]] ); ---CREDITS-- -marcosptf - - @phpsp - sao paulo - br ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(false) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - -Warning: dns_get_record(): Numeric DNS record type must be between %d and %d, '%s' given in %s on line %d -bool(false) - -Warning: dns_get_record(): Numeric DNS record type must be between %d and %d, '%s' given in %s on line %d -bool(false) - -Warning: dns_get_record(): Numeric DNS record type must be between %d and %d, '%s' given in %s on line %d -bool(false) - -Warning: dns_get_record(): Numeric DNS record type must be between %d and %d, '%s' given in %s on line %d -bool(false) - -Warning: dns_get_record(): Numeric DNS record type must be between %d and %d, '%s' given in %s on line %d -bool(false) - -Warning: dns_get_record(): Numeric DNS record type must be between %d and %d, '%s' given in %s on line %d -bool(false) diff --git a/ext/standard/tests/network/dns_get_record_caa.phpt b/ext/standard/tests/network/dns_get_record_caa.phpt deleted file mode 100644 index 21286921e1..0000000000 --- a/ext/standard/tests/network/dns_get_record_caa.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -dns_get_record() CAA tests ---SKIPIF-- - ---FILE-- - 0) { - if (array_key_exists("type", $dns[0]) - and $dns[0]["type"] == "CAA" - and array_key_exists("flags", $dns[0]) - and array_key_exists("tag", $dns[0]) - and array_key_exists("value", $dns[0]) - ) { - $chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-."; - if (strlen($dns[0]["value"]) == strspn($dns[0]["value"], $chars)) { - $match = true; - } - } - } - if ($match) { - echo "CAA record found\n"; - } else { - echo "CAA lookup failed\n"; - var_dump($dns); - } -} -?> ---EXPECT-- -CAA record found -CAA record found -- cgit v1.2.1