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

1.1       misho       1: --TEST--
                      2: posix_getcwd(): Basic tests
                      3: --SKIPIF--
                      4: <?php
                      5: if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); 
                      6: if (!function_exists('posix_getcwd')) die('skip posix_getcwd() not found');
                      7: ?>
                      8: --FILE--
                      9: <?php
                     10: echo "Basic test of POSIX posix_getcwd function\n"; 
                     11: var_dump(posix_getcwd());
                     12: var_dump(posix_getcwd(1));
                     13: 
                     14: ?>
                     15: ===DONE===
                     16: --EXPECTF--
                     17: Basic test of POSIX posix_getcwd function
                     18: string(%d) "%s"
                     19: 
                     20: Warning: posix_getcwd() expects exactly 0 parameters, 1 given in %s on line %d
                     21: NULL
                     22: ===DONE===

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