php-8.0.30-src/ext/tokenizer/tests/no_inline_html_split.phpt

27 lines
391 B
PHP

--TEST--
Inline HTML should not be split at partial PHP tags
--SKIPIF--
<?php if (!extension_loaded("tokenizer")) print "skip tokenizer extension not enabled"; ?>
--INI--
short_open_tag=0
--FILE--
<?php
var_dump(token_get_all(<<<'PHP'
Foo<?phpBar
PHP));
?>
--EXPECTF--
array(1) {
[0]=>
array(3) {
[0]=>
int(%d)
[1]=>
string(11) "Foo<?phpBar"
[2]=>
int(1)
}
}