Annotation of embedaddon/php/ext/posix/tests/posix_getpwnam_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: posix_getpwnam(): Basic tests
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
! 6: if (!function_exists('posix_getpwnam')) die('skip posix_getpwnam() not found');
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10: echo "Basic test of POSIX posix_getpwnam function\n";
! 11:
! 12: var_dump(posix_getpwnam(1));
! 13: var_dump(posix_getpwnam(''));
! 14: var_dump(posix_getpwnam(NULL));
! 15:
! 16: ?>
! 17: ===DONE====
! 18: --EXPECT--
! 19: Basic test of POSIX posix_getpwnam function
! 20: bool(false)
! 21: bool(false)
! 22: bool(false)
! 23: ===DONE====
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>