From: andy wharmby Date: Fri, 28 Aug 2009 22:46:43 +0000 (+0000) Subject: New basic network function tests. Tested on Windows, Linux and Linux 64 bit X-Git-Tag: php-5.4.0alpha1~191^2~2733 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83b40961b7dc8bc48b59752e4909c13834a6be82;p=php New basic network function tests. Tested on Windows, Linux and Linux 64 bit --- diff --git a/ext/standard/tests/network/gethostbyaddr_basic1.phpt b/ext/standard/tests/network/gethostbyaddr_basic1.phpt new file mode 100644 index 0000000000..2232d36265 --- /dev/null +++ b/ext/standard/tests/network/gethostbyaddr_basic1.phpt @@ -0,0 +1,18 @@ +--TEST-- +Test gethostbyaddr() function : basic functionality +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing gethostbyaddr() : basic functionality *** +%rloopback|localhost(\.localdomain)?%r +===DONE=== \ No newline at end of file diff --git a/ext/standard/tests/network/gethostbyname_basic003.phpt b/ext/standard/tests/network/gethostbyname_basic003.phpt new file mode 100644 index 0000000000..711490c413 --- /dev/null +++ b/ext/standard/tests/network/gethostbyname_basic003.phpt @@ -0,0 +1,18 @@ +--TEST-- +Test gethostbyname() function : basic functionality +--FILE-- + +===DONE=== +--EXPECT-- +*** Testing gethostbyname() : basic functionality *** +127.0.0.1 +===DONE=== \ No newline at end of file diff --git a/ext/standard/tests/network/gethostbynamel_basic1.phpt b/ext/standard/tests/network/gethostbynamel_basic1.phpt new file mode 100644 index 0000000000..5ce7c4251a --- /dev/null +++ b/ext/standard/tests/network/gethostbynamel_basic1.phpt @@ -0,0 +1,19 @@ +--TEST-- +Test gethostbynamel() function : basic functionality +--FILE-- + +===DONE=== +--EXPECTF-- +*** Testing gethostbynamel() : basic functionality *** +array(%d) { + %a +} +===DONE=== \ No newline at end of file