summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/003.phpt
blob: dbafebfb8dabde789bfae28438fa74d1d126629e (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