ReflectionClass_toString_001.phpt 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  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. --EXPECTF--
  12. Class [ <internal:Reflection> class ReflectionClass implements Reflector ] {
  13. - Constants [3] {
  14. Constant [ integer IS_IMPLICIT_ABSTRACT ] { 16 }
  15. Constant [ integer IS_EXPLICIT_ABSTRACT ] { 32 }
  16. Constant [ integer IS_FINAL ] { 64 }
  17. }
  18. - Static properties [0] {
  19. }
  20. - Static methods [1] {
  21. Method [ <internal:Reflection> 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 [49] {
  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> 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 isInstantiable ] {
  58. - Parameters [0] {
  59. }
  60. }
  61. Method [ <internal:Reflection> public method isCloneable ] {
  62. - Parameters [0] {
  63. }
  64. }
  65. Method [ <internal:Reflection> public method getFileName ] {
  66. - Parameters [0] {
  67. }
  68. }
  69. Method [ <internal:Reflection> public method getStartLine ] {
  70. - Parameters [0] {
  71. }
  72. }
  73. Method [ <internal:Reflection> public method getEndLine ] {
  74. - Parameters [0] {
  75. }
  76. }
  77. Method [ <internal:Reflection> public method getDocComment ] {
  78. - Parameters [0] {
  79. }
  80. }
  81. Method [ <internal:Reflection> public method getConstructor ] {
  82. - Parameters [0] {
  83. }
  84. }
  85. Method [ <internal:Reflection> public method hasMethod ] {
  86. - Parameters [1] {
  87. Parameter #0 [ <required> $name ]
  88. }
  89. }
  90. Method [ <internal:Reflection> public method getMethod ] {
  91. - Parameters [1] {
  92. Parameter #0 [ <required> $name ]
  93. }
  94. }
  95. Method [ <internal:Reflection> public method getMethods ] {
  96. - Parameters [1] {
  97. Parameter #0 [ <optional> $filter ]
  98. }
  99. }
  100. Method [ <internal:Reflection> public method hasProperty ] {
  101. - Parameters [1] {
  102. Parameter #0 [ <required> $name ]
  103. }
  104. }
  105. Method [ <internal:Reflection> public method getProperty ] {
  106. - Parameters [1] {
  107. Parameter #0 [ <required> $name ]
  108. }
  109. }
  110. Method [ <internal:Reflection> public method getProperties ] {
  111. - Parameters [1] {
  112. Parameter #0 [ <optional> $filter ]
  113. }
  114. }
  115. Method [ <internal:Reflection> public method hasConstant ] {
  116. - Parameters [1] {
  117. Parameter #0 [ <required> $name ]
  118. }
  119. }
  120. Method [ <internal:Reflection> public method getConstants ] {
  121. - Parameters [0] {
  122. }
  123. }
  124. Method [ <internal:Reflection> public method getConstant ] {
  125. - Parameters [1] {
  126. Parameter #0 [ <required> $name ]
  127. }
  128. }
  129. Method [ <internal:Reflection> public method getInterfaces ] {
  130. - Parameters [0] {
  131. }
  132. }
  133. Method [ <internal:Reflection> public method getInterfaceNames ] {
  134. - Parameters [0] {
  135. }
  136. }
  137. Method [ <internal:Reflection> public method isInterface ] {
  138. - Parameters [0] {
  139. }
  140. }
  141. Method [ <internal:Reflection> public method getTraits ] {
  142. - Parameters [0] {
  143. }
  144. }
  145. Method [ <internal:Reflection> public method getTraitNames ] {
  146. - Parameters [0] {
  147. }
  148. }
  149. Method [ <internal:Reflection> public method getTraitAliases ] {
  150. - Parameters [0] {
  151. }
  152. }
  153. Method [ <internal:Reflection> public method isTrait ] {
  154. - Parameters [0] {
  155. }
  156. }
  157. Method [ <internal:Reflection> public method isAbstract ] {
  158. - Parameters [0] {
  159. }
  160. }
  161. Method [ <internal:Reflection> public method isFinal ] {
  162. - Parameters [0] {
  163. }
  164. }
  165. Method [ <internal:Reflection> public method getModifiers ] {
  166. - Parameters [0] {
  167. }
  168. }
  169. Method [ <internal:Reflection> public method isInstance ] {
  170. - Parameters [1] {
  171. Parameter #0 [ <required> $object ]
  172. }
  173. }
  174. Method [ <internal:Reflection> public method newInstance ] {
  175. - Parameters [1] {
  176. Parameter #0 [ <required> $args ]
  177. }
  178. }
  179. Method [ <internal:Reflection> public method newInstanceWithoutConstructor ] {
  180. - Parameters [0] {
  181. }
  182. }
  183. Method [ <internal:Reflection> public method newInstanceArgs ] {
  184. - Parameters [1] {
  185. Parameter #0 [ <optional> array $args ]
  186. }
  187. }
  188. Method [ <internal:Reflection> public method getParentClass ] {
  189. - Parameters [0] {
  190. }
  191. }
  192. Method [ <internal:Reflection> public method isSubclassOf ] {
  193. - Parameters [1] {
  194. Parameter #0 [ <required> $class ]
  195. }
  196. }
  197. Method [ <internal:Reflection> public method getStaticProperties ] {
  198. - Parameters [0] {
  199. }
  200. }
  201. Method [ <internal:Reflection> public method getStaticPropertyValue ] {
  202. - Parameters [2] {
  203. Parameter #0 [ <required> $name ]
  204. Parameter #1 [ <optional> $default ]
  205. }
  206. }
  207. Method [ <internal:Reflection> public method setStaticPropertyValue ] {
  208. - Parameters [2] {
  209. Parameter #0 [ <required> $name ]
  210. Parameter #1 [ <required> $value ]
  211. }
  212. }
  213. Method [ <internal:Reflection> public method getDefaultProperties ] {
  214. - Parameters [0] {
  215. }
  216. }
  217. Method [ <internal:Reflection> public method isIterateable ] {
  218. - Parameters [0] {
  219. }
  220. }
  221. Method [ <internal:Reflection> public method implementsInterface ] {
  222. - Parameters [1] {
  223. Parameter #0 [ <required> $interface ]
  224. }
  225. }
  226. Method [ <internal:Reflection> public method getExtension ] {
  227. - Parameters [0] {
  228. }
  229. }
  230. Method [ <internal:Reflection> public method getExtensionName ] {
  231. - Parameters [0] {
  232. }
  233. }
  234. Method [ <internal:Reflection> public method inNamespace ] {
  235. - Parameters [0] {
  236. }
  237. }
  238. Method [ <internal:Reflection> public method getNamespaceName ] {
  239. - Parameters [0] {
  240. }
  241. }
  242. Method [ <internal:Reflection> public method getShortName ] {
  243. - Parameters [0] {
  244. }
  245. }
  246. }
  247. }