braced.test 679 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. Braced namespaces
  2. -----
  3. <?php
  4. namespace Foo\Bar {
  5. foo;
  6. }
  7. namespace {
  8. bar;
  9. }
  10. -----
  11. array(
  12. 0: Stmt_Namespace(
  13. name: Name(
  14. name: Foo\Bar
  15. )
  16. stmts: array(
  17. 0: Stmt_Expression(
  18. expr: Expr_ConstFetch(
  19. name: Name(
  20. name: foo
  21. )
  22. )
  23. )
  24. )
  25. )
  26. 1: Stmt_Namespace(
  27. name: null
  28. stmts: array(
  29. 0: Stmt_Expression(
  30. expr: Expr_ConstFetch(
  31. name: Name(
  32. name: bar
  33. )
  34. )
  35. )
  36. )
  37. )
  38. )