xref: /php-src/ext/reflection/tests/bug60367.phpt (revision f41220fe)
1--TEST--
2Bug #60367 (Reflection and Late Static Binding)
3--FILE--
4<?php
5abstract class A {
6
7    const WHAT = 'A';
8
9    public static function call() {
10        echo static::WHAT;
11    }
12
13}
14
15class B extends A {
16
17    const WHAT = 'B';
18
19}
20
21$method = ReflectionMethod::createFromMethodName("b::call");
22$method->invoke(null);
23$method->invokeArgs(null, array());
24$method = ReflectionMethod::createFromMethodName("A::call");
25$method->invoke(null);
26$method->invokeArgs(null, array());
27?>
28--EXPECT--
29BBAA
30