014.phpt 827 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --TEST--
  2. get_included_files() tests
  3. --FILE--
  4. <?php
  5. var_dump(get_included_files());
  6. include(dirname(__FILE__)."/014.inc");
  7. var_dump(get_included_files());
  8. var_dump(get_included_files(1,1));
  9. include_once(dirname(__FILE__)."/014.inc");
  10. var_dump(get_included_files());
  11. var_dump(get_included_files(1));
  12. include(dirname(__FILE__)."/014.inc");
  13. var_dump(get_included_files());
  14. echo "Done\n";
  15. ?>
  16. --EXPECTF--
  17. array(1) {
  18. [0]=>
  19. string(%d) "%s"
  20. }
  21. array(2) {
  22. [0]=>
  23. string(%d) "%s"
  24. [1]=>
  25. string(%d) "%s"
  26. }
  27. Warning: get_included_files() expects exactly 0 parameters, 2 given in %s on line %d
  28. NULL
  29. array(2) {
  30. [0]=>
  31. string(%d) "%s"
  32. [1]=>
  33. string(%d) "%s"
  34. }
  35. Warning: get_included_files() expects exactly 0 parameters, 1 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. Done