Annotation of embedaddon/php/ext/reflection/tests/bug60367.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: Bug #60367 (Reflection and Late Static Binding)
3: --FILE--
4: <?php
5: abstract class A {
6:
7: const WHAT = 'A';
8:
9: public static function call() {
10: echo static::WHAT;
11: }
12:
13: }
14:
15: class B extends A {
16:
17: const WHAT = 'B';
18:
19: }
20:
21: $method = new ReflectionMethod("b::call");
22: $method->invoke(null);
1.1.1.2 ! misho 23: $method->invokeArgs(null, array());
1.1 misho 24: $method = new ReflectionMethod("A::call");
25: $method->invoke(null);
1.1.1.2 ! misho 26: $method->invokeArgs(null, array());
1.1 misho 27: --EXPECTF--
1.1.1.2 ! misho 28: BBAA
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>