mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
20 lines
322 B
Plaintext
20 lines
322 B
Plaintext
|
--TEST--
|
||
|
ReflectionMethod::__toString() tests (overriden method)
|
||
|
--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
|
||
|
}
|