Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/code/formatPreservation/nopCommentAtEnd.test @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 129ea1e6d783 |
children |
rev | line source |
---|---|
Chris@17 | 1 Nop statement with comment at end (#513) |
Chris@17 | 2 ----- |
Chris@17 | 3 <?php |
Chris@17 | 4 $foo; |
Chris@17 | 5 $bar; |
Chris@17 | 6 ----- |
Chris@17 | 7 $stmts[1] = new Stmt\Nop(['comments' => [new Comment('//Some comment here')]]); |
Chris@17 | 8 ----- |
Chris@17 | 9 <?php |
Chris@17 | 10 $foo; |
Chris@17 | 11 //Some comment here |