diff options
author | Marcus Boerger <helly@php.net> | 2004-09-29 08:48:16 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-09-29 08:48:16 +0000 |
commit | 93753e19b135660992d4e516297860648c5217e8 (patch) | |
tree | ea235f3fcecfdce963e9ae06e66b8ec5712c9b7e | |
parent | ec42c1432ca7e91b6a4bb891d08542a89754be79 (diff) | |
download | php-git-93753e19b135660992d4e516297860648c5217e8.tar.gz |
Add new test
-rwxr-xr-x | ext/reflection/tests/003.phpt | 31 |
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=== |