mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 00:59:49 +01:00
81e53ce0ff
This changset also adds unit tests for Comments and adds a way to test the pretty printer.
25 lines
586 B
Plaintext
25 lines
586 B
Plaintext
Invalid namespace names
|
|
-----
|
|
<?php namespace self;
|
|
-----
|
|
Cannot use "self" as namespace name as it is reserved on line 1
|
|
-----
|
|
<?php namespace parent;
|
|
-----
|
|
Cannot use "parent" as namespace name as it is reserved on line 1
|
|
-----
|
|
<?php namespace static;
|
|
-----
|
|
Unexpected token T_STATIC on line 1
|
|
-----
|
|
<?php use A as self;
|
|
-----
|
|
Cannot use "A" as "self" because "self" is a special class name on line 1
|
|
-----
|
|
<?php use B as parent;
|
|
-----
|
|
Cannot use "B" as "parent" because "parent" is a special class name on line 1
|
|
-----
|
|
<?php use C as static;
|
|
-----
|
|
Unexpected token T_STATIC on line 1 |