summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_toString_004.phpt
blob: 0eecb3c8a3460fb1554b51749986c23a4bfa3486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Constant evaluation exception during ReflectionClass::__toString()
--FILE--
<?php

class A {
    const C = self::UNKNOWN;
}
try {
    echo new ReflectionClass(A::class);
} catch (Error $e) {
    echo $e->getMessage(), "\n";
}

?>
--EXPECT--
Undefined constant self::UNKNOWN