Annotation of embedaddon/php/ext/standard/tests/general_functions/get_include_path_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test get_include_path() function
3: --INI--
4: include_path=.
5: --FILE--
6: <?php
7: /* Prototype: string get_include_path ( void )
8: * Description: Gets the current include_path configuration option
9:
10: */
11:
12: echo "*** Testing get_include_path()\n";
13:
14: var_dump(get_include_path());
15:
16: if (ini_get("include_path") == get_include_path()) {
17: echo "PASSED\n";
18: } else {
19: echo "FAILED\n";
20: }
21:
22: echo "\nError cases:\n";
23: var_dump(get_include_path(TRUE));
24:
25:
26: ?>
27: ===DONE===
28: --EXPECTF--
29: *** Testing get_include_path()
30: string(1) "."
31: PASSED
32:
33: Error cases:
34:
35: Warning: get_include_path() expects exactly 0 parameters, 1 given in %s on line %d
36: NULL
37: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>