1--TEST-- 2ReflectionExtension::getClasses(); 3--CREDITS-- 4Thijs Lensselink <tl@lenss.nl> 5--FILE-- 6<?php 7$ext = new ReflectionExtension('reflection'); 8var_dump($ext->getClasses()); 9?> 10--EXPECT-- 11array(24) { 12 ["ReflectionException"]=> 13 object(ReflectionClass)#2 (1) { 14 ["name"]=> 15 string(19) "ReflectionException" 16 } 17 ["Reflection"]=> 18 object(ReflectionClass)#3 (1) { 19 ["name"]=> 20 string(10) "Reflection" 21 } 22 ["Reflector"]=> 23 object(ReflectionClass)#4 (1) { 24 ["name"]=> 25 string(9) "Reflector" 26 } 27 ["ReflectionFunctionAbstract"]=> 28 object(ReflectionClass)#5 (1) { 29 ["name"]=> 30 string(26) "ReflectionFunctionAbstract" 31 } 32 ["ReflectionFunction"]=> 33 object(ReflectionClass)#6 (1) { 34 ["name"]=> 35 string(18) "ReflectionFunction" 36 } 37 ["ReflectionGenerator"]=> 38 object(ReflectionClass)#7 (1) { 39 ["name"]=> 40 string(19) "ReflectionGenerator" 41 } 42 ["ReflectionParameter"]=> 43 object(ReflectionClass)#8 (1) { 44 ["name"]=> 45 string(19) "ReflectionParameter" 46 } 47 ["ReflectionType"]=> 48 object(ReflectionClass)#9 (1) { 49 ["name"]=> 50 string(14) "ReflectionType" 51 } 52 ["ReflectionNamedType"]=> 53 object(ReflectionClass)#10 (1) { 54 ["name"]=> 55 string(19) "ReflectionNamedType" 56 } 57 ["ReflectionUnionType"]=> 58 object(ReflectionClass)#11 (1) { 59 ["name"]=> 60 string(19) "ReflectionUnionType" 61 } 62 ["ReflectionIntersectionType"]=> 63 object(ReflectionClass)#12 (1) { 64 ["name"]=> 65 string(26) "ReflectionIntersectionType" 66 } 67 ["ReflectionMethod"]=> 68 object(ReflectionClass)#13 (1) { 69 ["name"]=> 70 string(16) "ReflectionMethod" 71 } 72 ["ReflectionClass"]=> 73 object(ReflectionClass)#14 (1) { 74 ["name"]=> 75 string(15) "ReflectionClass" 76 } 77 ["ReflectionObject"]=> 78 object(ReflectionClass)#15 (1) { 79 ["name"]=> 80 string(16) "ReflectionObject" 81 } 82 ["ReflectionProperty"]=> 83 object(ReflectionClass)#16 (1) { 84 ["name"]=> 85 string(18) "ReflectionProperty" 86 } 87 ["ReflectionClassConstant"]=> 88 object(ReflectionClass)#17 (1) { 89 ["name"]=> 90 string(23) "ReflectionClassConstant" 91 } 92 ["ReflectionExtension"]=> 93 object(ReflectionClass)#18 (1) { 94 ["name"]=> 95 string(19) "ReflectionExtension" 96 } 97 ["ReflectionZendExtension"]=> 98 object(ReflectionClass)#19 (1) { 99 ["name"]=> 100 string(23) "ReflectionZendExtension" 101 } 102 ["ReflectionReference"]=> 103 object(ReflectionClass)#20 (1) { 104 ["name"]=> 105 string(19) "ReflectionReference" 106 } 107 ["ReflectionAttribute"]=> 108 object(ReflectionClass)#21 (1) { 109 ["name"]=> 110 string(19) "ReflectionAttribute" 111 } 112 ["ReflectionEnum"]=> 113 object(ReflectionClass)#22 (1) { 114 ["name"]=> 115 string(14) "ReflectionEnum" 116 } 117 ["ReflectionEnumUnitCase"]=> 118 object(ReflectionClass)#23 (1) { 119 ["name"]=> 120 string(22) "ReflectionEnumUnitCase" 121 } 122 ["ReflectionEnumBackedCase"]=> 123 object(ReflectionClass)#24 (1) { 124 ["name"]=> 125 string(24) "ReflectionEnumBackedCase" 126 } 127 ["ReflectionFiber"]=> 128 object(ReflectionClass)#25 (1) { 129 ["name"]=> 130 string(15) "ReflectionFiber" 131 } 132} 133