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