Skip to content

Commit 6ee932c

Browse files
shaikhulnikic
authored andcommitted
Add basic test for posix_setegid function
1 parent bd1fa53 commit 6ee932c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--TEST--
2+
Test function posix_setegid() by calling it with its expected arguments
3+
--SKIPIF--
4+
<?php
5+
if(!extension_loaded("posix")) die("skip - POSIX extension not loaded");
6+
?>
7+
--FILE--
8+
<?php
9+
var_dump(posix_setegid(posix_getegid()));
10+
?>
11+
--EXPECTF--
12+
bool(true)

0 commit comments

Comments
 (0)