Annotation of embedaddon/php/Zend/tests/014.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: get_included_files() tests
3: --FILE--
4: <?php
5:
6: var_dump(get_included_files());
7:
8: include(dirname(__FILE__)."/014.inc");
9: var_dump(get_included_files());
10:
11: var_dump(get_included_files(1,1));
12:
13: include_once(dirname(__FILE__)."/014.inc");
14: var_dump(get_included_files());
15:
16: var_dump(get_included_files(1));
17:
18: include(dirname(__FILE__)."/014.inc");
19: var_dump(get_included_files());
20:
21: echo "Done\n";
22: ?>
23: --EXPECTF--
24: array(1) {
25: [0]=>
26: string(%d) "%s"
27: }
28: array(2) {
29: [0]=>
30: string(%d) "%s"
31: [1]=>
32: string(%d) "%s"
33: }
34:
35: Warning: get_included_files() expects exactly 0 parameters, 2 given in %s on line %d
36: NULL
37: array(2) {
38: [0]=>
39: string(%d) "%s"
40: [1]=>
41: string(%d) "%s"
42: }
43:
44: Warning: get_included_files() expects exactly 0 parameters, 1 given in %s on line %d
45: NULL
46: array(2) {
47: [0]=>
48: string(%d) "%s"
49: [1]=>
50: string(%d) "%s"
51: }
52: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>