| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- Handling of inline HTML
- -----
- <?php
- function test() {
- ?>Foo<?php
- }
- -----
- $stmts[0]->setAttribute('origNode', null);
- -----
- <?php
- function test()
- {
- ?>Foo<?php
- }
- -----
- <?php
- function test() {
- foo();
- ?>Bar<?php
- baz();
- }
- -----
- // TODO Fix broken result
- $stmts[0]->stmts[2] = $stmts[0]->stmts[1];
- -----
- <?php
- function test() {
- foo();
- ?>Bar<?php
- Bar
- }
- -----
- <?php
- function test() {
- foo();
- ?>Bar<?php
- baz();
- }
- -----
- // TODO Preserve formatting
- $stmts[0]->stmts[1] = $stmts[0]->stmts[2];
- -----
- <?php
- function test()
- {
- foo();
- baz();
- baz();
- }
- -----
- <?php
- function test() {
- foo();
- ?>Bar<?php
- baz();
- }
- -----
- // TODO Preserve formatting
- unset($stmts[0]->stmts[2]);
- -----
- <?php
- function test()
- {
- foo();
- ?>Bar<?php
- }
- -----
- <?php
- function test() {
- foo();
- ?>Bar<?php
- baz();
- }
- -----
- // TODO Preserve formatting
- array_splice($stmts[0]->stmts, 0, 1, []);
- -----
- <?php
- function test()
- {
- ?>Bar<?php
- baz();
- }
- -----
- <?php
- function test() {
- foo();
- ?>Bar<?php
- baz();
- }
- -----
- // TODO Preserve formatting
- array_splice($stmts[0]->stmts, 1, 1, []);
- -----
- <?php
- function test()
- {
- foo();
- baz();
- }
|