projects
/
m6w6
/
ext-psi
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
travis: update
[m6w6/ext-psi]
/
tests
/
parser
/
cpp002.phpt
1
--TEST--
2
CPP defines
3
--FILE--
4
===TEST===
5
<?php
6
7
var_dump(psi_validate_string(<<<PSI
8
#define FOO 1
9
#define FOO 1
10
#define FOO 2
11
#define FOO 2
12
PSI
13
));
14
?>
15
===DONE===
16
--EXPECT--
17
===TEST===
18
19
Warning: 'FOO' redefined in <stdin> on line 3
20
21
Warning: 'FOO' previously defined in <stdin> on line 2
22
bool(true)
23
===DONE===