summaryrefslogtreecommitdiff
path: root/ext/standard/tests/network
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
parentc8e10c6119081a7af98bf2103e30fdd6dc791666 (diff)
downloadphp-git-2580a7ba092b4ed9f4a9860d911e2e17ec545ef5.tar.gz
More zpp error/variation test removals
Diffstat (limited to 'ext/standard/tests/network')
-rw-r--r--ext/standard/tests/network/closelog_error.phpt27
-rw-r--r--ext/standard/tests/network/gethostbyname_error005.phpt12
-rw-r--r--ext/standard/tests/network/gethostbynamel_error.phpt36
-rw-r--r--ext/standard/tests/network/ip2long_error.phpt37
-rw-r--r--ext/standard/tests/network/long2ip_error.phpt37
-rw-r--r--ext/standard/tests/network/syslog_error.phpt40
6 files changed, 0 insertions, 189 deletions
diff --git a/ext/standard/tests/network/closelog_error.phpt b/ext/standard/tests/network/closelog_error.phpt
deleted file mode 100644
index b72048bd76..0000000000
--- a/ext/standard/tests/network/closelog_error.phpt
+++ /dev/null
@@ -1,27 +0,0 @@
---TEST--
-Test closelog() function : error conditions
---FILE--
-<?php
-/* Prototype : bool closelog(void)
- * Description: Close connection to system logger
- * Source code: ext/standard/syslog.c
- * Alias to functions:
- */
-
-echo "*** Testing closelog() : error conditions ***\n";
-
-// One argument
-echo "\n-- Testing closelog() function with one argument --\n";
-$extra_arg = 10;
-var_dump( closelog($extra_arg) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing closelog() : error conditions ***
-
--- Testing closelog() function with one argument --
-
-Warning: closelog() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/network/gethostbyname_error005.phpt b/ext/standard/tests/network/gethostbyname_error005.phpt
deleted file mode 100644
index be4b159dae..0000000000
--- a/ext/standard/tests/network/gethostbyname_error005.phpt
+++ /dev/null
@@ -1,12 +0,0 @@
---TEST--
-gethostbyname() function - basic invalid parameter test
---CREDITS--
-"Sylvain R." <sracine@phpquebec.org>
---INI--
-display_errors=false
---FILE--
-<?php
- var_dump(gethostbyname());
-?>
---EXPECT--
-NULL
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
diff --git a/ext/standard/tests/network/ip2long_error.phpt b/ext/standard/tests/network/ip2long_error.phpt
deleted file mode 100644
index 4816d63943..0000000000
--- a/ext/standard/tests/network/ip2long_error.phpt
+++ /dev/null
@@ -1,37 +0,0 @@
---TEST--
-Test ip2long() function : error conditions
---FILE--
-<?php
-/* Prototype : int ip2long(string ip_address)
- * Description: Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address
- * Source code: ext/standard/basic_functions.c
- * Alias to functions:
- */
-
-echo "*** Testing ip2long() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing ip2long() function with Zero arguments --\n";
-var_dump( ip2long() );
-
-//Test ip2long with one more than the expected number of arguments
-echo "\n-- Testing ip2long() function with more than expected no. of arguments --\n";
-$ip_address = '127.0.0.1';
-$extra_arg = 10;
-var_dump( ip2long($ip_address, $extra_arg) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing ip2long() : error conditions ***
-
--- Testing ip2long() function with Zero arguments --
-
-Warning: ip2long() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing ip2long() function with more than expected no. of arguments --
-
-Warning: ip2long() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/network/long2ip_error.phpt b/ext/standard/tests/network/long2ip_error.phpt
deleted file mode 100644
index 52cdf55a89..0000000000
--- a/ext/standard/tests/network/long2ip_error.phpt
+++ /dev/null
@@ -1,37 +0,0 @@
---TEST--
-Test long2ip() function : error conditions
---FILE--
-<?php
-/* Prototype : string long2ip(int proper_address)
- * Description: Converts an (IPv4) Internet network address into a string in Internet standard dotted format
- * Source code: ext/standard/basic_functions.c
- * Alias to functions:
- */
-
-echo "*** Testing long2ip() : error conditions ***\n";
-
-// Zero arguments
-echo "\n-- Testing long2ip() function with Zero arguments --\n";
-var_dump( long2ip() );
-
-//Test long2ip with one more than the expected number of arguments
-echo "\n-- Testing long2ip() function with more than expected no. of arguments --\n";
-$proper_address = 10;
-$extra_arg = 10;
-var_dump( long2ip($proper_address, $extra_arg) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing long2ip() : error conditions ***
-
--- Testing long2ip() function with Zero arguments --
-
-Warning: long2ip() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-
--- Testing long2ip() function with more than expected no. of arguments --
-
-Warning: long2ip() expects exactly 1 parameter, 2 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/standard/tests/network/syslog_error.phpt b/ext/standard/tests/network/syslog_error.phpt
deleted file mode 100644
index c958af432b..0000000000
--- a/ext/standard/tests/network/syslog_error.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-Test syslog() function : error conditions
---FILE--
-<?php
-/* Prototype : bool syslog(int priority, string message)
- * Description: Generate a system log message
- * Source code: ext/standard/syslog.c
- * Alias to functions:
- */
-
-echo "*** Testing syslog() : error conditions ***\n";
-
-
-//Test syslog with one more than the expected number of arguments
-echo "\n-- Testing syslog() function with more than expected no. of arguments --\n";
-$priority = 10;
-$message = 'string_val';
-$extra_arg = 10;
-var_dump( syslog($priority, $message, $extra_arg) );
-
-// Testing syslog with one less than the expected number of arguments
-echo "\n-- Testing syslog() function with less than expected no. of arguments --\n";
-$priority = 10;
-var_dump( syslog($priority) );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing syslog() : error conditions ***
-
--- Testing syslog() function with more than expected no. of arguments --
-
-Warning: syslog() expects exactly 2 parameters, 3 given in %s on line %d
-NULL
-
--- Testing syslog() function with less than expected no. of arguments --
-
-Warning: syslog() expects exactly 2 parameters, 1 given in %s on line %d
-NULL
-===DONE===