xref: /PHP-8.2/ext/tokenizer/tests/bug67395.phpt (revision 74859783)
1--TEST--
2Bug 67395: token_name() does not return name for T_POW and T_POW_EQUAL token
3--EXTENSIONS--
4tokenizer
5--FILE--
6<?php
7
8$powToken = token_get_all('<?php **')[1][0];
9var_dump(token_name($powToken));
10
11$powEqualToken = token_get_all('<?php **=')[1][0];
12var_dump(token_name($powEqualToken));
13
14?>
15--EXPECT--
16string(5) "T_POW"
17string(11) "T_POW_EQUAL"
18