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