php-src/ext/reflection/tests/003.phpt

34 lines
401 B
Plaintext
Raw Normal View History

2004-09-29 08:48:16 +00:00
--TEST--
ReflectionMethod::invoke() with base class method
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
2004-09-29 08:48:16 +00:00
--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===