php-src/ext/standard/tests/general_functions/include_path.phpt
Antony Dovgal 5498386f63 fix tests
2006-12-27 19:17:02 +00:00

108 lines
2.0 KiB
PHP

--TEST--
*_include_path() tests
--INI--
include_path=.
--FILE--
<?php
var_dump(get_include_path());
var_dump(get_include_path("var"));
var_dump(restore_include_path());
var_dump(restore_include_path(""));
var_dump(set_include_path());
var_dump(get_include_path());
var_dump(set_include_path("var"));
var_dump(get_include_path());
var_dump(restore_include_path());
var_dump(get_include_path());
var_dump(set_include_path(".:/path/to/dir"));
var_dump(get_include_path());
var_dump(restore_include_path());
var_dump(get_include_path());
var_dump(set_include_path(""));
var_dump(get_include_path());
var_dump(restore_include_path());
var_dump(get_include_path());
var_dump(set_include_path(array()));
var_dump(get_include_path());
var_dump(restore_include_path());
var_dump(get_include_path());
echo "Done\n";
?>
--EXPECTF--
string(1) "."
Warning: get_include_path() expects exactly 0 parameters, 1 given in %s on line %d
NULL
NULL
Warning: restore_include_path() expects exactly 0 parameters, 1 given in %s on line %d
NULL
Warning: set_include_path() expects exactly 1 parameter, 0 given in %s on line %d
NULL
string(1) "."
string(1) "."
string(3) "var"
NULL
string(1) "."
string(1) "."
string(14) ".:/path/to/dir"
NULL
string(1) "."
string(1) "."
string(1) "."
NULL
string(1) "."
Warning: set_include_path() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d
NULL
string(1) "."
NULL
string(1) "."
Done
--UEXPECTF--
unicode(1) "."
Warning: get_include_path() expects exactly 0 parameters, 1 given in %s on line %d
NULL
NULL
Warning: restore_include_path() expects exactly 0 parameters, 1 given in %s on line %d
NULL
Warning: set_include_path() expects exactly 1 parameter, 0 given in %s on line %d
NULL
unicode(1) "."
unicode(1) "."
unicode(3) "var"
NULL
unicode(1) "."
unicode(1) "."
unicode(14) ".:/path/to/dir"
NULL
unicode(1) "."
unicode(1) "."
unicode(1) "."
NULL
unicode(1) "."
Warning: set_include_path() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d
NULL
unicode(1) "."
NULL
unicode(1) "."
Done