xref: /PHP-5.5/ext/reflection/tests/bug60367.phpt (revision e83f0261)
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 = new ReflectionMethod("b::call");
22$method->invoke(null);
23$method->invokeArgs(null, array());
24$method = new ReflectionMethod("A::call");
25$method->invoke(null);
26$method->invokeArgs(null, array());
27--EXPECTF--
28BBAA
29