]> granicus.if.org Git - php/commitdiff
Remove getmxrr alias dns_get_mx test
authorGabriel Caruso <carusogabriel34@gmail.com>
Sun, 4 Feb 2018 09:05:51 +0000 (07:05 -0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 10 Feb 2018 18:05:44 +0000 (19:05 +0100)
The test is currently failing, and the same functionality is
already tested (in a better way) in the getmxrr() test.

ext/standard/tests/network/dns_get_mx.phpt [deleted file]

diff --git a/ext/standard/tests/network/dns_get_mx.phpt b/ext/standard/tests/network/dns_get_mx.phpt
deleted file mode 100644 (file)
index f6bb7ec..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
---TEST--
-bool dns_get_mx ( string $hostname , array &$mxhosts [, array &$weight ] );
---CREDITS--
-marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
---SKIPIF--
-<?php
-if (getenv("SKIP_SLOW_TESTS"))
-    die("skip slow test");
-if (getenv("SKIP_ONLINE_TESTS"))
-    die("skip test requiring internet connection");
-if (substr(PHP_OS, 0, 3) == 'WIN') {
-    die('skip: no Windows support');
-}
-?>
---FILE--
-<?php
-$domains = array('php.net', 'doc.php.net', 'wiki.php.net');
-foreach ($domains as $domain) {
-    if (getmxrr($domain, $hosts, $weights)) {
-        echo "Hosts: " . count($hosts) . ", weights: " . count($weights) . "\n";
-    }
-}
-?>
---EXPECTF--
-Hosts: %i, weights: %i
-Hosts: %i, weights: %i
-Hosts: %i, weights: %i