xref: /PHP-8.0/Zend/tests/014.phpt (revision 26dfce7f)
1--TEST--
2get_included_files() tests
3--FILE--
4<?php
5
6var_dump(get_included_files());
7
8include(__DIR__."/014.inc");
9var_dump(get_included_files());
10
11include_once(__DIR__."/014.inc");
12var_dump(get_included_files());
13
14include(__DIR__."/014.inc");
15var_dump(get_included_files());
16
17echo "Done\n";
18?>
19--EXPECTF--
20array(1) {
21  [0]=>
22  string(%d) "%s"
23}
24array(2) {
25  [0]=>
26  string(%d) "%s"
27  [1]=>
28  string(%d) "%s"
29}
30array(2) {
31  [0]=>
32  string(%d) "%s"
33  [1]=>
34  string(%d) "%s"
35}
36array(2) {
37  [0]=>
38  string(%d) "%s"
39  [1]=>
40  string(%d) "%s"
41}
42Done
43