summaryrefslogtreecommitdiff
path: root/ext/tokenizer/tests/no_inline_html_split.phpt
blob: 37608d73e0340f17b64cf6ee25f3847fdfc20b5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--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)
  }
}