xref: /PHP-7.0/ext/tokenizer/tests/bug67395.phpt (revision c2f3091b)
1--TEST--
2Bug 67395: token_name() does not return name for T_POW and T_POW_EQUAL token
3--SKIPIF--
4<?php if (!extension_loaded("tokenizer")) print "skip"; ?>
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