1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-11 17:09:41 +01:00
PHP-Parser/test/code/formatPreservation/inlineHtml.test
2017-12-26 15:08:30 +01:00

54 lines
596 B
Plaintext

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 Fix broken result
$stmts[0]->stmts[1] = $stmts[0]->stmts[2];
-----
<?php
function test() {
foo();<?php
baz();
baz();
}