--TEST-- Flexible heredoc and nowdoc testing with token_get_all --EXTENSIONS-- tokenizer --FILE-- getMessage()} on line {$e->getLine()}\n"; } } $tests = []; $tests[1] = <<<'OUTER_END' $test) { echo "\nTest case $i\n\n"; test($test, 0); } echo "\nWith TOKEN_PARSE:\n"; foreach ($tests as $i => $test) { echo "\nTest case $i\n\n"; test($test, TOKEN_PARSE); } ?> --EXPECT-- Without TOKEN_PARSE: Test case 1 Line 1: T_OPEN_TAG ('