xref: /PHP-8.2/ext/reflection/tests/010.phpt (revision f8d79582)
1--TEST--
2ReflectionMethod::__toString() tests (overridden 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