Annotation of embedaddon/php/ext/posix/tests/posix_getgrgid_basic.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test posix_getgrgid() function : basic functionality 
        !             3: --SKIPIF--
        !             4: <?php 
        !             5:        if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); 
        !             6: ?>
        !             7: --FILE--
        !             8: <?php 
        !             9:   echo "Basic test of POSIX getgid and getgrid fucntions\n"; 
        !            10:        
        !            11:   $gid = posix_getgid();
        !            12:   $groupinfo = posix_getgrgid($gid);
        !            13:   
        !            14:   print_r($groupinfo);
        !            15:   
        !            16: ?>
        !            17: ===DONE===
        !            18: --EXPECTF--
        !            19: Basic test of POSIX getgid and getgrid fucntions
        !            20: Array
        !            21: (
        !            22:     [name] => %s
        !            23:     [passwd] => %a
        !            24:     [members] => Array
        !            25: %a
        !            26: 
        !            27:     [gid] => %d
        !            28: )
        !            29: ===DONE===
        !            30:   

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>