mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
22 lines
389 B
PHP
22 lines
389 B
PHP
--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
|
|
}
|