Annotation of embedaddon/php/ext/posix/tests/posix_errno_error.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test function posix_errno() 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: Morten Amundsen mor10am@gmail.com
! 9: Francesco Fullone ff@ideato.it
! 10: #PHPTestFest Cesena Italia on 2009-06-20
! 11: --FILE--
! 12: <?php
! 13:
! 14: echo "*** Test by calling method or function with more than expected arguments ***\n";
! 15:
! 16: // test without any error
! 17: var_dump(posix_errno('bar'));
! 18:
! 19: ?>
! 20: --EXPECTF--
! 21: *** Test by calling method or function with more than expected arguments ***
! 22:
! 23: Warning: posix_errno() expects exactly 0 parameters, 1 given in %s on line %d
! 24: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>