notBraced.test 942 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Semicolon style namespaces
  2. -----
  3. <?php
  4. namespace Foo\Bar;
  5. foo;
  6. namespace Bar;
  7. bar;
  8. -----
  9. array(
  10. 0: Stmt_Namespace(
  11. name: Name(
  12. parts: array(
  13. 0: Foo
  14. 1: Bar
  15. )
  16. )
  17. stmts: array(
  18. 0: Stmt_Expression(
  19. expr: Expr_ConstFetch(
  20. name: Name(
  21. parts: array(
  22. 0: foo
  23. )
  24. )
  25. )
  26. )
  27. )
  28. )
  29. 1: Stmt_Namespace(
  30. name: Name(
  31. parts: array(
  32. 0: Bar
  33. )
  34. )
  35. stmts: array(
  36. 0: Stmt_Expression(
  37. expr: Expr_ConstFetch(
  38. name: Name(
  39. parts: array(
  40. 0: bar
  41. )
  42. )
  43. )
  44. )
  45. )
  46. )
  47. )