xref: /PHP-5.6/ext/posix/tests/posix_getcwd.phpt (revision 9ff94c82)
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
10
11var_dump(posix_getcwd());
12var_dump(posix_getcwd(1));
13
14?>
15--EXPECTF--
16string(%d) "%s"
17
18Warning: posix_getcwd() expects exactly 0 parameters, 1 given in %s on line %d
19NULL
20