summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-09-29 08:48:16 +0000
committerMarcus Boerger <helly@php.net>2004-09-29 08:48:16 +0000
commit93753e19b135660992d4e516297860648c5217e8 (patch)
treeea235f3fcecfdce963e9ae06e66b8ec5712c9b7e
parentec42c1432ca7e91b6a4bb891d08542a89754be79 (diff)
downloadphp-git-93753e19b135660992d4e516297860648c5217e8.tar.gz
Add new test
-rwxr-xr-xext/reflection/tests/003.phpt31
1 files changed, 31 insertions, 0 deletions
diff --git a/ext/reflection/tests/003.phpt b/ext/reflection/tests/003.phpt
new file mode 100755
index 0000000000..6603892559
--- /dev/null
+++ b/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===