summaryrefslogtreecommitdiff
path: root/ext/posix/tests/posix_initgroups_basic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/posix/tests/posix_initgroups_basic.phpt')
-rw-r--r--ext/posix/tests/posix_initgroups_basic.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/posix/tests/posix_initgroups_basic.phpt b/ext/posix/tests/posix_initgroups_basic.phpt
new file mode 100644
index 0000000..4a50059
--- /dev/null
+++ b/ext/posix/tests/posix_initgroups_basic.phpt
@@ -0,0 +1,22 @@
+--TEST--
+posix_initgroups(): Basic tests
+--SKIPIF--
+<?php
+if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
+if (!function_exists('posix_initgroups')) die('skip posix_initgroups() not found');
+?>
+--FILE--
+<?php
+echo "Basic test of POSIX posix_initgroups function\n";
+var_dump(posix_initgroups('foo', 'bar'));
+var_dump(posix_initgroups(NULL, NULL));
+
+?>
+===DONE====
+--EXPECTF--
+Basic test of POSIX posix_initgroups function
+
+Warning: posix_initgroups() expects parameter 2 to be long, string given in %s on line %d
+bool(false)
+bool(false)
+===DONE====