summaryrefslogtreecommitdiff
path: root/ext/standard/tests/network/gethostbynamel_error.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-07 16:39:05 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-03-07 17:09:43 +0100
commit2580a7ba092b4ed9f4a9860d911e2e17ec545ef5 (patch)
tree5d8f3a41ab25018d479cc656d6bd0022cc2a0e2c /ext/standard/tests/network/gethostbynamel_error.phpt
parentc8e10c6119081a7af98bf2103e30fdd6dc791666 (diff)
downloadphp-git-2580a7ba092b4ed9f4a9860d911e2e17ec545ef5.tar.gz
More zpp error/variation test removals
Diffstat (limited to 'ext/standard/tests/network/gethostbynamel_error.phpt')
-rw-r--r--ext/standard/tests/network/gethostbynamel_error.phpt36
1 files changed, 0 insertions, 36 deletions
diff --git a/ext/standard/tests/network/gethostbynamel_error.phpt b/ext/standard/tests/network/gethostbynamel_error.phpt
deleted file mode 100644
index 9d4c29619b..0000000000
--- a/ext/standard/tests/network/gethostbynamel_error.phpt
+++ /dev/null
@@ -1,36 +0,0 @@
---TEST--
-Test gethostbynamel() function : error conditions
---FILE--
-<?php
-/* Prototype : proto array gethostbynamel(string hostname)
- * Description: Return a list of IP addresses that a given hostname resolves to.
- * Source code: ext/standard/dns.c
- * Alias to functions:
- */
-
-echo "*** Testing gethostbynamel() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing gethostbynamel() function with Zero arguments --\n";
-var_dump( gethostbynamel() );
-
-//Test gethostbynamel with one more than the expected number of arguments
-echo "\n-- Testing gethostbynamel() function with more than expected no. of arguments --\n";
-$hostname = 'string_val';
-$extra_arg = 10;
-var_dump( gethostbynamel($hostname, $extra_arg) );
-echo "Done";
-?>
---EXPECTF--
-*** Testing gethostbynamel() : error conditions ***
-
--- Testing gethostbynamel() function with Zero arguments --
-
-Warning: gethostbynamel() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing gethostbynamel() function with more than expected no. of arguments --
-
-Warning: gethostbynamel() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-Done