cvs: php-src /tests/reflection 003.phpt
| From: | Marcus Boerger | Date: | Wed, 29 Sep 2004 08:48:18 +0000 |
| Subject: | cvs: php-src /tests/reflection 003.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28826@lists.php.net to get a copy of this message | ||
helly Wed Sep 29 04:48:18 2004 EDT
Added files:
/php-src/tests/reflection 003.phpt
Log:
Add new test
http://cvs.php.net/co.php/php-src/tests/reflection/003.phpt?r=1.1&p=1
Index: php-src/tests/reflection/003.phpt
+++ php-src/tests/reflection/003.phpt
--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===