comparison vendor/nikic/php-parser/test/code/parser/stmt/loop/while.test @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 While loop
2 -----
3 <?php
4
5 while ($a) {}
6
7 while ($a):
8 endwhile;
9 -----
10 array(
11 0: Stmt_While(
12 cond: Expr_Variable(
13 name: a
14 )
15 stmts: array(
16 )
17 )
18 1: Stmt_While(
19 cond: Expr_Variable(
20 name: a
21 )
22 stmts: array(
23 )
24 )
25 )