mirror of
https://github.com/php/php-src.git
synced 2024-10-23 01:07:01 +00:00
32 lines
316 B
Plaintext
32 lines
316 B
Plaintext
|
--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===
|