Files
php-src/ext/reflection/tests/010.phpt
2023-07-18 12:59:21 +02:00

20 lines
352 B
PHP

--TEST--
ReflectionMethod::__toString() tests (overridden method)
--FILE--
<?php
class Foo {
function func() {
}
}
class Bar extends Foo {
function func() {
}
}
$m = ReflectionMethod::createFromMethodName("Bar::func");
echo $m;
?>
--EXPECTF--
Method [ <user, overwrites Foo, prototype Foo> public method func ] {
@@ %s010.php 7 - 8
}