repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add bitset operations and tests
[hiphop-php.git]
/
hphp
/
test
/
slow
/
ext_misc
/
token_get_all_xhp.php
blob
e4f3e1eec6d659ef88d4f2146c30945082a313a2
1
<
?php
2
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'
,
13
1
,
14
),
15
array
(
16
T_WHITESPACE
,
17
' '
,
18
1
,
19
),
20
array
(
21
T_XHP_LABEL
,
22
':test'
,
23
1
,
24
),
25
'{'
,
26
array
(
27
T_XHP_CATEGORY
,
28
'category'
,
29
1
,
30
),
31
array
(
32
T_WHITESPACE
,
33
' '
,
34
1
,
35
),
36
array
(
37
T_XHP_CATEGORY_LABEL
,
38
'
%test
'
,
39
1
,
40
),
41
'}'
,
42
);
43
44
var_dump
(
$src
==
$expected
);