ReflectionClass_toString_001.phpt 7.2 KB

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