diff options
author | Sean Finney <seanius@debian.org> | 2009-06-24 22:49:04 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2009-06-24 22:49:04 +0200 |
commit | 84f4ca9b07fe5b73d840258f4aa7c1eb534c4253 (patch) | |
tree | 9829bd578af8a4a8b42b04277f9067e00dc5ad90 /ext/posix/tests/posix_getgroups_basic.phpt | |
parent | 6821b67124604da690c5e9276d5370d679c63ac8 (diff) | |
download | php-upstream/5.3.0_RC4.tar.gz |
Imported Upstream version 5.3.0~RC4upstream/5.3.0_RC4upstream/5.3.0.RC4
Diffstat (limited to 'ext/posix/tests/posix_getgroups_basic.phpt')
-rw-r--r-- | ext/posix/tests/posix_getgroups_basic.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/posix/tests/posix_getgroups_basic.phpt b/ext/posix/tests/posix_getgroups_basic.phpt new file mode 100644 index 000000000..f062468b4 --- /dev/null +++ b/ext/posix/tests/posix_getgroups_basic.phpt @@ -0,0 +1,24 @@ +--TEST-- +Test posix_getgroups() function : basic functionality +--SKIPIF-- +<?php + if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); +?> +--FILE-- +<?php + echo "Basic test of POSIX getgroups\n"; + + $groups = posix_getgroups(); + + if (!is_array($groups)) { + echo "TEST FAILED - array result expected\n"; + } else { + echo "TEST PASSED\n"; + } + +?> +===DONE=== +--EXPECT-- +Basic test of POSIX getgroups +TEST PASSED +===DONE===
\ No newline at end of file |