X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fnikic%2Fphp-parser%2Ftest%2Fcode%2Fparser%2Fexpr%2FfetchAndCall%2FnewDeref.test;fp=vendor%2Fnikic%2Fphp-parser%2Ftest%2Fcode%2Fparser%2Fexpr%2FfetchAndCall%2FnewDeref.test;h=a4b7a7240b97706436e7a4d4b8534ac649685b9b;hp=5e36ff8102326ba79885f3eb127283914fde93c6;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/newDeref.test b/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/newDeref.test index 5e36ff810..a4b7a7240 100644 --- a/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/newDeref.test +++ b/vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/newDeref.test @@ -8,48 +8,42 @@ New expression dereferencing (new A)['b']['c']; ----- array( - 0: Expr_PropertyFetch( - var: Expr_New( - class: Name( - parts: array( - 0: A + 0: Stmt_Expression( + expr: Expr_PropertyFetch( + var: Expr_New( + class: Name( + parts: array( + 0: A + ) ) - ) - args: array( - ) - ) - name: b - ) - 1: Expr_MethodCall( - var: Expr_New( - class: Name( - parts: array( - 0: A + args: array( ) ) - args: array( + name: Identifier( + name: b ) ) - name: b - args: array( - ) ) - 2: Expr_ArrayDimFetch( - var: Expr_New( - class: Name( - parts: array( - 0: A + 1: Stmt_Expression( + expr: Expr_MethodCall( + var: Expr_New( + class: Name( + parts: array( + 0: A + ) + ) + args: array( ) ) + name: Identifier( + name: b + ) args: array( ) ) - dim: Scalar_String( - value: b - ) ) - 3: Expr_ArrayDimFetch( - var: Expr_ArrayDimFetch( + 2: Stmt_Expression( + expr: Expr_ArrayDimFetch( var: Expr_New( class: Name( parts: array( @@ -63,8 +57,26 @@ array( value: b ) ) - dim: Scalar_String( - value: c + ) + 3: Stmt_Expression( + expr: Expr_ArrayDimFetch( + var: Expr_ArrayDimFetch( + var: Expr_New( + class: Name( + parts: array( + 0: A + ) + ) + args: array( + ) + ) + dim: Scalar_String( + value: b + ) + ) + dim: Scalar_String( + value: c + ) ) ) ) \ No newline at end of file