1--TEST-- 2ReflectionClass::__toString() 3--CREDITS-- 4Robin Fernandes <robinf@php.net> 5Steve Seear <stevseea@php.net> 6--FILE-- 7<?php 8$rc = new ReflectionClass("ReflectionClass"); 9echo $rc; 10?> 11--EXPECTF-- 12Class [ <internal:Reflection> class ReflectionClass implements Reflector ] { 13 14 - Constants [3] { 15 Constant [ integer IS_IMPLICIT_ABSTRACT ] { 16 } 16 Constant [ integer IS_EXPLICIT_ABSTRACT ] { 32 } 17 Constant [ integer IS_FINAL ] { 64 } 18 } 19 20 - Static properties [0] { 21 } 22 23 - Static methods [1] { 24 Method [ <internal:Reflection> static public method export ] { 25 26 - Parameters [2] { 27 Parameter #0 [ <required> $argument ] 28 Parameter #1 [ <optional> $return ] 29 } 30 } 31 } 32 33 - Properties [1] { 34 Property [ <default> public $name ] 35 } 36 37 - Methods [43] { 38 Method [ <internal:Reflection> final private method __clone ] { 39 40 - Parameters [0] { 41 } 42 } 43 44 Method [ <internal:Reflection, ctor> public method __construct ] { 45 46 - Parameters [1] { 47 Parameter #0 [ <required> $argument ] 48 } 49 } 50 51 Method [ <internal:Reflection> public method __toString ] { 52 53 - Parameters [0] { 54 } 55 } 56 57 Method [ <internal:Reflection> public method getName ] { 58 59 - Parameters [0] { 60 } 61 } 62 63 Method [ <internal:Reflection> public method isInternal ] { 64 65 - Parameters [0] { 66 } 67 } 68 69 Method [ <internal:Reflection> public method isUserDefined ] { 70 71 - Parameters [0] { 72 } 73 } 74 75 Method [ <internal:Reflection> public method isInstantiable ] { 76 77 - Parameters [0] { 78 } 79 } 80 81 Method [ <internal:Reflection> public method getFileName ] { 82 83 - Parameters [0] { 84 } 85 } 86 87 Method [ <internal:Reflection> public method getStartLine ] { 88 89 - Parameters [0] { 90 } 91 } 92 93 Method [ <internal:Reflection> public method getEndLine ] { 94 95 - Parameters [0] { 96 } 97 } 98 99 Method [ <internal:Reflection> public method getDocComment ] { 100 101 - Parameters [0] { 102 } 103 } 104 105 Method [ <internal:Reflection> public method getConstructor ] { 106 107 - Parameters [0] { 108 } 109 } 110 111 Method [ <internal:Reflection> public method hasMethod ] { 112 113 - Parameters [1] { 114 Parameter #0 [ <required> $name ] 115 } 116 } 117 118 Method [ <internal:Reflection> public method getMethod ] { 119 120 - Parameters [1] { 121 Parameter #0 [ <required> $name ] 122 } 123 } 124 125 Method [ <internal:Reflection> public method getMethods ] { 126 127 - Parameters [1] { 128 Parameter #0 [ <optional> $filter ] 129 } 130 } 131 132 Method [ <internal:Reflection> public method hasProperty ] { 133 134 - Parameters [1] { 135 Parameter #0 [ <required> $name ] 136 } 137 } 138 139 Method [ <internal:Reflection> public method getProperty ] { 140 141 - Parameters [1] { 142 Parameter #0 [ <required> $name ] 143 } 144 } 145 146 Method [ <internal:Reflection> public method getProperties ] { 147 148 - Parameters [1] { 149 Parameter #0 [ <optional> $filter ] 150 } 151 } 152 153 Method [ <internal:Reflection> public method hasConstant ] { 154 155 - Parameters [1] { 156 Parameter #0 [ <required> $name ] 157 } 158 } 159 160 Method [ <internal:Reflection> public method getConstants ] { 161 162 - Parameters [0] { 163 } 164 } 165 166 Method [ <internal:Reflection> public method getConstant ] { 167 168 - Parameters [1] { 169 Parameter #0 [ <required> $name ] 170 } 171 } 172 173 Method [ <internal:Reflection> public method getInterfaces ] { 174 175 - Parameters [0] { 176 } 177 } 178 179 Method [ <internal:Reflection> public method getInterfaceNames ] { 180 181 - Parameters [0] { 182 } 183 } 184 185 Method [ <internal:Reflection> public method isInterface ] { 186 187 - Parameters [0] { 188 } 189 } 190 191 Method [ <internal:Reflection> public method isAbstract ] { 192 193 - Parameters [0] { 194 } 195 } 196 197 Method [ <internal:Reflection> public method isFinal ] { 198 199 - Parameters [0] { 200 } 201 } 202 203 Method [ <internal:Reflection> public method getModifiers ] { 204 205 - Parameters [0] { 206 } 207 } 208 209 Method [ <internal:Reflection> public method isInstance ] { 210 211 - Parameters [1] { 212 Parameter #0 [ <required> $object ] 213 } 214 } 215 216 Method [ <internal:Reflection> public method newInstance ] { 217 218 - Parameters [1] { 219 Parameter #0 [ <required> $args ] 220 } 221 } 222 223 Method [ <internal:Reflection> public method newInstanceArgs ] { 224 225 - Parameters [1] { 226 Parameter #0 [ <optional> array $args ] 227 } 228 } 229 230 Method [ <internal:Reflection> public method getParentClass ] { 231 232 - Parameters [0] { 233 } 234 } 235 236 Method [ <internal:Reflection> public method isSubclassOf ] { 237 238 - Parameters [1] { 239 Parameter #0 [ <required> $class ] 240 } 241 } 242 243 Method [ <internal:Reflection> public method getStaticProperties ] { 244 245 - Parameters [0] { 246 } 247 } 248 249 Method [ <internal:Reflection> public method getStaticPropertyValue ] { 250 251 - Parameters [2] { 252 Parameter #0 [ <required> $name ] 253 Parameter #1 [ <optional> $default ] 254 } 255 } 256 257 Method [ <internal:Reflection> public method setStaticPropertyValue ] { 258 259 - Parameters [2] { 260 Parameter #0 [ <required> $name ] 261 Parameter #1 [ <required> $value ] 262 } 263 } 264 265 Method [ <internal:Reflection> public method getDefaultProperties ] { 266 267 - Parameters [0] { 268 } 269 } 270 271 Method [ <internal:Reflection> public method isIterateable ] { 272 273 - Parameters [0] { 274 } 275 } 276 277 Method [ <internal:Reflection> public method implementsInterface ] { 278 279 - Parameters [1] { 280 Parameter #0 [ <required> $interface ] 281 } 282 } 283 284 Method [ <internal:Reflection> public method getExtension ] { 285 286 - Parameters [0] { 287 } 288 } 289 290 Method [ <internal:Reflection> public method getExtensionName ] { 291 292 - Parameters [0] { 293 } 294 } 295 296 Method [ <internal:Reflection> public method inNamespace ] { 297 298 - Parameters [0] { 299 } 300 } 301 302 Method [ <internal:Reflection> public method getNamespaceName ] { 303 304 - Parameters [0] { 305 } 306 } 307 308 Method [ <internal:Reflection> public method getShortName ] { 309 310 - Parameters [0] { 311 } 312 } 313 } 314} 315