xref: /PHP-8.0/Zend/tests/bug69676_2.phpt (revision 782352c5)
1--TEST--
2Bug #69676: Resolution of self::FOO in class constants not correct (variation)
3--FILE--
4<?php
5
6class Foo {
7    const A = 'Foo::A';
8    const B = self::A . ' and ' . self::C;
9    const C = 'Foo::C';
10
11}
12
13class Bar extends Foo {
14    const A = 'Bar::A';
15    const C = 'Bar::C';
16}
17
18var_dump(Bar::B);
19
20?>
21--EXPECT--
22string(17) "Foo::A and Foo::C"
23