name.test-fail 667 B

12345678910111213141516171819202122232425
  1. Invalid namespace names
  2. -----
  3. <?php namespace self;
  4. -----
  5. Cannot use "self" as namespace name as it is reserved on line 1
  6. -----
  7. <?php namespace parent;
  8. -----
  9. Cannot use "parent" as namespace name as it is reserved on line 1
  10. -----
  11. <?php namespace static;
  12. -----
  13. Syntax error, unexpected T_STATIC, expecting T_STRING or T_NS_SEPARATOR or '{' on line 1
  14. -----
  15. <?php use A as self;
  16. -----
  17. Cannot use "A" as "self" because "self" is a special class name on line 1
  18. -----
  19. <?php use B as parent;
  20. -----
  21. Cannot use "B" as "parent" because "parent" is a special class name on line 1
  22. -----
  23. <?php use C as static;
  24. -----
  25. Syntax error, unexpected T_STATIC, expecting T_STRING on line 1