projects
/
m6w6
/
ext-psi
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
e8b5a13db5fb15483e216ed348866044d60fb481
[m6w6/ext-psi]
/
tests
/
parser
/
validate005.phpt
1
--TEST--
2
validate types
3
--FILE--
4
===TEST===
5
<?php
6
psi_validate_string(
7
<<<PSI
8
enum {
9
A,
10
B = A + 2,
11
C = X
12
}
13
PSI
14
);
15
?>
16
===DONE===
17
--EXPECTF--
18
===TEST===
19
20
Warning: Unknown variable 'X' in numeric expression in %s on line 4
21
22
Warning: Invalid numeric expression: 'X' in %s on line 4
23
===DONE===