posix_setgid_basic.phpt 577 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Test function posix_setgid() by calling it with its expected arguments
  3. --SKIPIF--
  4. <?php
  5. if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
  6. ?>
  7. --CREDITS--
  8. Marco Fabbri mrfabbri@gmail.com
  9. Francesco Fullone ff@ideato.it
  10. #PHPTestFest Cesena Italia on 2009-06-20
  11. --FILE--
  12. <?php
  13. echo "*** Test by calling method or function with its expected arguments ***\n";
  14. $gid = posix_getgid();
  15. var_dump(posix_setgid( $gid ) );
  16. ?>
  17. ===DONE===
  18. --EXPECTF--
  19. *** Test by calling method or function with its expected arguments ***
  20. bool(true)
  21. ===DONE===