From 62426919dfdb978d0c702374ca14bd99e4cd9ddc Mon Sep 17 00:00:00 2001 From: andy wharmby Date: Fri, 28 Aug 2009 22:46:43 +0000 Subject: [PATCH] New basic network function tests. Tested on Windows, Linux and Linux 64 bit --- .../tests/network/gethostbyaddr_basic1.phpt | 18 ++++++++++++++++++ .../tests/network/gethostbyname_basic003.phpt | 18 ++++++++++++++++++ .../tests/network/gethostbynamel_basic1.phpt | 19 +++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 ext/standard/tests/network/gethostbyaddr_basic1.phpt create mode 100644 ext/standard/tests/network/gethostbyname_basic003.phpt create mode 100644 ext/standard/tests/network/gethostbynamel_basic1.phpt 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 -- 2.40.0