diff options
Diffstat (limited to 'ext/reflection/tests/010.phpt')
-rw-r--r-- | ext/reflection/tests/010.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/reflection/tests/010.phpt b/ext/reflection/tests/010.phpt new file mode 100644 index 0000000..8f92fee --- /dev/null +++ b/ext/reflection/tests/010.phpt @@ -0,0 +1,21 @@ +--TEST-- +ReflectionMethod::__toString() tests (overriden method) +--SKIPIF-- +<?php extension_loaded('reflection') or die('skip'); ?> +--FILE-- +<?php +class Foo { + function func() { + } +} +class Bar extends Foo { + function func() { + } +} +$m = new ReflectionMethod("Bar::func"); +echo $m; +?> +--EXPECTF-- +Method [ <user, overwrites Foo, prototype Foo> public method func ] { + @@ %s010.php 7 - 8 +} |