2006-06-27 21:09:50 +00:00
|
|
|
--TEST--
|
|
|
|
get_included_files() tests
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
var_dump(get_included_files());
|
|
|
|
|
|
|
|
include(dirname(__FILE__)."/014.inc");
|
|
|
|
var_dump(get_included_files());
|
|
|
|
|
|
|
|
var_dump(get_included_files(1,1));
|
|
|
|
|
|
|
|
include_once(dirname(__FILE__)."/014.inc");
|
|
|
|
var_dump(get_included_files());
|
|
|
|
|
|
|
|
var_dump(get_included_files(1));
|
|
|
|
|
|
|
|
include(dirname(__FILE__)."/014.inc");
|
|
|
|
var_dump(get_included_files());
|
|
|
|
|
|
|
|
echo "Done\n";
|
|
|
|
?>
|
2008-05-26 14:33:44 +00:00
|
|
|
--EXPECTF--
|
2006-06-27 21:09:50 +00:00
|
|
|
array(1) {
|
|
|
|
[0]=>
|
|
|
|
unicode(%d) "%s"
|
|
|
|
}
|
|
|
|
array(2) {
|
|
|
|
[0]=>
|
|
|
|
unicode(%d) "%s"
|
|
|
|
[1]=>
|
|
|
|
unicode(%d) "%s"
|
|
|
|
}
|
|
|
|
|
2008-02-28 15:38:40 +00:00
|
|
|
Warning: get_included_files() expects exactly 0 parameters, 2 given in %s on line %d
|
2006-06-27 21:09:50 +00:00
|
|
|
NULL
|
|
|
|
array(2) {
|
|
|
|
[0]=>
|
|
|
|
unicode(%d) "%s"
|
|
|
|
[1]=>
|
|
|
|
unicode(%d) "%s"
|
|
|
|
}
|
|
|
|
|
2008-02-28 15:38:40 +00:00
|
|
|
Warning: get_included_files() expects exactly 0 parameters, 1 given in %s on line %d
|
2006-06-27 21:09:50 +00:00
|
|
|
NULL
|
|
|
|
array(2) {
|
|
|
|
[0]=>
|
|
|
|
unicode(%d) "%s"
|
|
|
|
[1]=>
|
|
|
|
unicode(%d) "%s"
|
|
|
|
}
|
|
|
|
Done
|