xref: /PHP-7.4/ext/reflection/tests/010.phpt (revision 17ccbeec)
1--TEST--
2ReflectionMethod::__toString() tests (overriden method)
3--FILE--
4<?php
5class Foo {
6	function func() {
7	}
8}
9class Bar extends Foo {
10	function func() {
11	}
12}
13$m = new ReflectionMethod("Bar::func");
14echo $m;
15?>
16--EXPECTF--
17Method [ <user, overwrites Foo, prototype Foo> public method func ] {
18  @@ %s010.php 7 - 8
19}
20