posix_getcwd_basic.phpt 510 B

12345678910111213141516171819202122
  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. ===DONE===
  15. --EXPECTF--
  16. Basic test of POSIX posix_getcwd function
  17. string(%d) "%s"
  18. Warning: posix_getcwd() expects exactly 0 parameters, 1 given in %s on line %d
  19. NULL
  20. ===DONE===