summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/003.phpt
blob: 8c37d539ac29c48d41325b16f6cf77535675726b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
ReflectionMethod::invoke() with base class method
--FILE--
<?php

class Foo
{
	function Test()
	{
		echo __METHOD__ . "\n";
	}
}

class Bar extends Foo
{
	function Test()
	{
		echo __METHOD__ . "\n";
	}
}

$o = new Bar;
$r = new ReflectionMethod('Foo','Test');

$r->invoke($o);

?>
--EXPECT--
Foo::Test