php4Style.test 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. PHP 4 style declarations
  2. -----
  3. <?php
  4. class A {
  5. var $foo;
  6. function bar() {}
  7. static abstract function baz() {}
  8. }
  9. -----
  10. array(
  11. 0: Stmt_Class(
  12. type: 0
  13. name: A
  14. extends: null
  15. implements: array(
  16. )
  17. stmts: array(
  18. 0: Stmt_Property(
  19. type: 0
  20. props: array(
  21. 0: Stmt_PropertyProperty(
  22. name: foo
  23. default: null
  24. )
  25. )
  26. )
  27. 1: Stmt_ClassMethod(
  28. type: 0
  29. byRef: false
  30. name: bar
  31. params: array(
  32. )
  33. returnType: null
  34. stmts: array(
  35. )
  36. )
  37. 2: Stmt_ClassMethod(
  38. type: 24
  39. byRef: false
  40. name: baz
  41. params: array(
  42. )
  43. returnType: null
  44. stmts: array(
  45. )
  46. )
  47. )
  48. )
  49. )