summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_toString_004.phpt
blob: 04b42d0792198a14809fe039f060ddb7fdd5cc2a (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 class constant 'self::UNKNOWN'