source: src/router/php7/Zend/tests/bug69676_2.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 354 bytes
Line 
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"
Note: See TracBrowser for help on using the repository browser.