Annotation of embedaddon/php/ext/standard/tests/file/realpath_error-win32.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test realpath() function: error conditions
! 3: --SKIPIF--
! 4: <?php
! 5: if (substr(PHP_OS, 0, 3) != 'WIN') {
! 6: die('skip only on Windows');
! 7: }
! 8: ?>
! 9: --FILE--
! 10: <?php
! 11: /* Prototype: string realpath ( string $path );
! 12: Description: Returns canonicalized absolute pathname
! 13: */
! 14:
! 15: echo "*** Testing realpath() for error conditions ***\n";
! 16: var_dump( realpath() ); // args < expected
! 17: var_dump( realpath(1, 2) ); // args > expected
! 18:
! 19: echo "Done\n";
! 20: ?>
! 21: --EXPECTF--
! 22: *** Testing realpath() for error conditions ***
! 23:
! 24: Warning: realpath() expects exactly 1 parameter, 0 given in %s on line %d
! 25: NULL
! 26:
! 27: Warning: realpath() expects exactly 1 parameter, 2 given in %s on line %d
! 28: NULL
! 29: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>