Annotation of embedaddon/php/ext/standard/tests/general_functions/include_path.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: *_include_path() tests
! 3: --INI--
! 4: include_path=.
! 5: --FILE--
! 6: <?php
! 7:
! 8: var_dump(get_include_path());
! 9: var_dump(get_include_path("var"));
! 10:
! 11: var_dump(restore_include_path());
! 12: var_dump(restore_include_path(""));
! 13:
! 14:
! 15: var_dump(set_include_path());
! 16: var_dump(get_include_path());
! 17: var_dump(set_include_path("var"));
! 18: var_dump(get_include_path());
! 19:
! 20: var_dump(restore_include_path());
! 21: var_dump(get_include_path());
! 22:
! 23: var_dump(set_include_path(".:/path/to/dir"));
! 24: var_dump(get_include_path());
! 25:
! 26: var_dump(restore_include_path());
! 27: var_dump(get_include_path());
! 28:
! 29: var_dump(set_include_path(""));
! 30: var_dump(get_include_path());
! 31:
! 32: var_dump(restore_include_path());
! 33: var_dump(get_include_path());
! 34:
! 35: var_dump(set_include_path(array()));
! 36: var_dump(get_include_path());
! 37:
! 38: var_dump(restore_include_path());
! 39: var_dump(get_include_path());
! 40:
! 41:
! 42: echo "Done\n";
! 43: ?>
! 44: --EXPECTF--
! 45: string(1) "."
! 46:
! 47: Warning: get_include_path() expects exactly 0 parameters, 1 given in %s on line %d
! 48: NULL
! 49: NULL
! 50:
! 51: Warning: restore_include_path() expects exactly 0 parameters, 1 given in %s on line %d
! 52: NULL
! 53:
! 54: Warning: set_include_path() expects exactly 1 parameter, 0 given in %s on line %d
! 55: NULL
! 56: string(1) "."
! 57: string(1) "."
! 58: string(3) "var"
! 59: NULL
! 60: string(1) "."
! 61: string(1) "."
! 62: string(14) ".:/path/to/dir"
! 63: NULL
! 64: string(1) "."
! 65: bool(false)
! 66: string(1) "."
! 67: NULL
! 68: string(1) "."
! 69:
! 70: Warning: set_include_path() expects parameter 1 to be string, array given in %s on line %d
! 71: NULL
! 72: string(1) "."
! 73: NULL
! 74: string(1) "."
! 75: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>