1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-03 17:57:59 +01:00
PHP-Parser/test/code/parser/stmt/namespace/name.test
2017-01-19 22:25:22 +01:00

50 lines
904 B
Plaintext

Different name types
-----
<?php
A;
A\B;
\A\B;
namespace\A\B;
-----
array(
0: Stmt_Expression(
expr: Expr_ConstFetch(
name: Name(
parts: array(
0: A
)
)
)
)
1: Stmt_Expression(
expr: Expr_ConstFetch(
name: Name(
parts: array(
0: A
1: B
)
)
)
)
2: Stmt_Expression(
expr: Expr_ConstFetch(
name: Name_FullyQualified(
parts: array(
0: A
1: B
)
)
)
)
3: Stmt_Expression(
expr: Expr_ConstFetch(
name: Name_Relative(
parts: array(
0: A
1: B
)
)
)
)
)