]> granicus.if.org Git - php/commitdiff
Add new test
authorMarcus Boerger <helly@php.net>
Wed, 29 Sep 2004 08:48:16 +0000 (08:48 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 29 Sep 2004 08:48:16 +0000 (08:48 +0000)
ext/reflection/tests/003.phpt [new file with mode: 0755]

diff --git a/ext/reflection/tests/003.phpt b/ext/reflection/tests/003.phpt
new file mode 100755 (executable)
index 0000000..6603892
--- /dev/null
@@ -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===