mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
6426420f61
* PHP-7.4: Replace dirname(__FILE__) by __DIR__ in tests
43 lines
545 B
PHP
43 lines
545 B
PHP
--TEST--
|
|
get_included_files() tests
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(get_included_files());
|
|
|
|
include(__DIR__."/014.inc");
|
|
var_dump(get_included_files());
|
|
|
|
include_once(__DIR__."/014.inc");
|
|
var_dump(get_included_files());
|
|
|
|
include(__DIR__."/014.inc");
|
|
var_dump(get_included_files());
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
array(1) {
|
|
[0]=>
|
|
string(%d) "%s"
|
|
}
|
|
array(2) {
|
|
[0]=>
|
|
string(%d) "%s"
|
|
[1]=>
|
|
string(%d) "%s"
|
|
}
|
|
array(2) {
|
|
[0]=>
|
|
string(%d) "%s"
|
|
[1]=>
|
|
string(%d) "%s"
|
|
}
|
|
array(2) {
|
|
[0]=>
|
|
string(%d) "%s"
|
|
[1]=>
|
|
string(%d) "%s"
|
|
}
|
|
Done
|