summaryrefslogtreecommitdiff
path: root/ext/posix/tests/posix_getpwnam.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/posix/tests/posix_getpwnam.phpt')
-rw-r--r--ext/posix/tests/posix_getpwnam.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/posix/tests/posix_getpwnam.phpt b/ext/posix/tests/posix_getpwnam.phpt
new file mode 100644
index 0000000000..2be9752abe
--- /dev/null
+++ b/ext/posix/tests/posix_getpwnam.phpt
@@ -0,0 +1,16 @@
+--TEST--
+posix_getpwnam(): Basic tests
+--SKIP--
+<?php if (!function_exists('posix_getpwnam')) die('skip posix_getpwnam() not found'); ?>
+--FILE--
+<?php
+
+var_dump(posix_getpwnam(1));
+var_dump(posix_getpwnam(''));
+var_dump(posix_getpwnam(NULL));
+
+?>
+--EXPECT--
+bool(false)
+bool(false)
+bool(false)