Annotation of embedaddon/php/ext/posix/tests/posix_geteuid_error1.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test function posix_geteuid() by calling it more than or less than 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 incorrect numbers of arguments ***\n";
                     14: 
                     15: $extra_args = array( 12312, 2 => '1234', 'string' => 'string' );
                     16: 
                     17: var_dump( posix_geteuid( $extra_args ));
                     18: foreach ( $extra_args as $arg )
                     19: {
                     20:        var_dump(posix_geteuid( $arg ));
                     21: }
                     22: 
                     23: ?>
                     24: --EXPECTF--
                     25: *** Test by calling method or function with incorrect numbers of arguments ***
                     26: 
                     27: Warning: posix_geteuid() expects exactly 0 parameters, 1 given in %s on line %d
                     28: NULL
                     29: 
                     30: Warning: posix_geteuid() expects exactly 0 parameters, 1 given in %s on line %d
                     31: NULL
                     32: 
                     33: Warning: posix_geteuid() expects exactly 0 parameters, 1 given in %s on line %d
                     34: NULL
                     35: 
                     36: Warning: posix_geteuid() expects exactly 0 parameters, 1 given in %s on line %d
                     37: NULL

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