Browse Source

Add new test

PHP-5.1
Marcus Boerger 22 years ago
parent
commit
93753e19b1
  1. 31
      ext/reflection/tests/003.phpt

31
ext/reflection/tests/003.phpt

@ -0,0 +1,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===
Loading…
Cancel
Save