view vendor/nikic/php-parser/test/code/parser/stmt/namespace/name.test @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 5fb285c0d0e3
children
line wrap: on
line source
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
                )
            )
        )
    )
)