php-src/ext/reflection/tests/003.phpt
2008-05-24 13:34:22 +00:00

32 lines
334 B
PHP
Executable File

--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);
?>
===DONE===
--EXPECT--
Foo::Test
===DONE===