ReflectionExtension_getClasses_basic.phpt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --TEST--
  2. ReflectionExtension::getClasses();
  3. --CREDITS--
  4. Thijs Lensselink <tl@lenss.nl>
  5. --FILE--
  6. <?php
  7. $ext = new ReflectionExtension('reflection');
  8. var_dump($ext->getClasses());
  9. ?>
  10. ==DONE==
  11. --EXPECT--
  12. array(12) {
  13. ["ReflectionException"]=>
  14. &object(ReflectionClass)#2 (1) {
  15. ["name"]=>
  16. string(19) "ReflectionException"
  17. }
  18. ["Reflection"]=>
  19. &object(ReflectionClass)#3 (1) {
  20. ["name"]=>
  21. string(10) "Reflection"
  22. }
  23. ["Reflector"]=>
  24. &object(ReflectionClass)#4 (1) {
  25. ["name"]=>
  26. string(9) "Reflector"
  27. }
  28. ["ReflectionFunctionAbstract"]=>
  29. &object(ReflectionClass)#5 (1) {
  30. ["name"]=>
  31. string(26) "ReflectionFunctionAbstract"
  32. }
  33. ["ReflectionFunction"]=>
  34. &object(ReflectionClass)#6 (1) {
  35. ["name"]=>
  36. string(18) "ReflectionFunction"
  37. }
  38. ["ReflectionParameter"]=>
  39. &object(ReflectionClass)#7 (1) {
  40. ["name"]=>
  41. string(19) "ReflectionParameter"
  42. }
  43. ["ReflectionMethod"]=>
  44. &object(ReflectionClass)#8 (1) {
  45. ["name"]=>
  46. string(16) "ReflectionMethod"
  47. }
  48. ["ReflectionClass"]=>
  49. &object(ReflectionClass)#9 (1) {
  50. ["name"]=>
  51. string(15) "ReflectionClass"
  52. }
  53. ["ReflectionObject"]=>
  54. &object(ReflectionClass)#10 (1) {
  55. ["name"]=>
  56. string(16) "ReflectionObject"
  57. }
  58. ["ReflectionProperty"]=>
  59. &object(ReflectionClass)#11 (1) {
  60. ["name"]=>
  61. string(18) "ReflectionProperty"
  62. }
  63. ["ReflectionExtension"]=>
  64. &object(ReflectionClass)#12 (1) {
  65. ["name"]=>
  66. string(19) "ReflectionExtension"
  67. }
  68. ["ReflectionZendExtension"]=>
  69. &object(ReflectionClass)#13 (1) {
  70. ["name"]=>
  71. string(23) "ReflectionZendExtension"
  72. }
  73. }
  74. ==DONE==