Removed modules/contrib/media module to allow update to the core media module
[yaffs-website] / vendor / nikic / php-parser / test / code / formatPreservation / inlineHtml.test
1 Handling of inline HTML
2 -----
3 <?php
4
5 function test() {
6     ?>Foo<?php
7 }
8 -----
9 $stmts[0]->setAttribute('origNode', null);
10 -----
11 <?php
12
13 function test()
14 {
15     ?>Foo<?php
16 }
17 -----
18 <?php
19
20 function test() {
21     foo();
22     ?>Bar<?php
23     baz();
24 }
25 -----
26 // TODO Fix broken result
27 $stmts[0]->stmts[2] = $stmts[0]->stmts[1];
28 -----
29 <?php
30
31 function test() {
32     foo();
33     ?>Bar<?php
34     Bar
35 }
36 -----
37 <?php
38
39 function test() {
40     foo();
41     ?>Bar<?php
42     baz();
43 }
44 -----
45 // TODO Fix broken result
46 $stmts[0]->stmts[1] = $stmts[0]->stmts[2];
47 -----
48 <?php
49
50 function test() {
51     foo();<?php
52     baz();
53     baz();
54 }