summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/003.phpt
blob: 660389255907c8dc478d9bca5d296da94a1e5376 (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
30
31
--TEST--
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);

?>
===DONE===
--EXPECT--
Foo::Test
===DONE===