Skip to content

Commit 9ed4966

Browse files
committed
Add test for inexistent constants
1 parent 18ead6a commit 9ed4966

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--TEST--
2+
ReflectionConstant on inexistent constant
3+
--FILE--
4+
<?php
5+
6+
try {
7+
new \ReflectionConstant('C');
8+
} catch (Exception $e) {
9+
echo get_class($e) . ': ' . $e->getMessage() . "\n";
10+
}
11+
12+
?>
13+
--EXPECT--
14+
ReflectionException: Constant "C" does not exist

0 commit comments

Comments
 (0)