add bitset operations and tests
[hiphop-php.git] / hphp / test / slow / ext_misc / token_get_all_xhp.php
blobe4f3e1eec6d659ef88d4f2146c30945082a313a2
1 <?php
3 $src = token_get_all('<?hh class :test{category %test}');
4 $expected = array(
5 array(
6 T_OPEN_TAG,
7 '<?hh ',
8 1,
9 ),
10 array(
11 T_CLASS,
12 'class',
15 array(
16 T_WHITESPACE,
17 ' ',
20 array(
21 T_XHP_LABEL,
22 ':test',
25 '{',
26 array(
27 T_XHP_CATEGORY,
28 'category',
31 array(
32 T_WHITESPACE,
33 ' ',
36 array(
37 T_XHP_CATEGORY_LABEL,
38 '%test',
41 '}',
44 var_dump($src == $expected);