]> granicus.if.org Git - php/commitdiff
Add basic test for posix_setegid function
authorShaikhul Chowdhury <shaikhul.net@gmail.com>
Fri, 26 May 2017 04:46:24 +0000 (00:46 -0400)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 2 Jun 2017 21:43:56 +0000 (23:43 +0200)
ext/posix/tests/posix_setegid_basic.phpt [new file with mode: 0644]

diff --git a/ext/posix/tests/posix_setegid_basic.phpt b/ext/posix/tests/posix_setegid_basic.phpt
new file mode 100644 (file)
index 0000000..729abc5
--- /dev/null
@@ -0,0 +1,12 @@
+--TEST--
+Test function posix_setegid() by calling it with its expected arguments
+--SKIPIF--
+<?php 
+    if(!extension_loaded("posix")) die("skip - POSIX extension not loaded"); 
+?>
+--FILE--
+<?php
+var_dump(posix_setegid(posix_getegid()));
+?>
+--EXPECTF--
+bool(true)
\ No newline at end of file