]> granicus.if.org Git - php/commitdiff
Adding a test for ext/posix/tests/posix_getegid_basic.phpt
authormichelangelo <dragonbe+github@gmail.com>
Sat, 9 Jun 2012 16:07:11 +0000 (16:07 +0000)
committerDavid Soria Parra <dsp@php.net>
Sun, 10 Jun 2012 13:07:49 +0000 (17:07 +0400)
ext/posix/tests/posix_getegid_basic.phpt [new file with mode: 0644]

diff --git a/ext/posix/tests/posix_getegid_basic.phpt b/ext/posix/tests/posix_getegid_basic.phpt
new file mode 100644 (file)
index 0000000..d0016f4
--- /dev/null
@@ -0,0 +1,15 @@
+--TEST--
+Test function posix_getegid() by calling it with its expected arguments
+--CREDITS--
+Michelangelo van Dam dragonbe@gmail.com
+#PHPTestFest Dutch PHP Conference 2012
+--SKIPIF--
+<?php 
+        if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; 
+?>
+--FILE--
+<?php
+var_dump(posix_getegid());
+?>
+--EXPECTF--
+int(%d)