mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
a555cc0b3d
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
26 lines
410 B
PHP
26 lines
410 B
PHP
--TEST--
|
|
Reflection Bug #41061 ("visibility error" in ReflectionFunction::__toString())
|
|
--FILE--
|
|
<?php
|
|
|
|
function foo() {
|
|
}
|
|
|
|
class bar {
|
|
private function foo() {
|
|
}
|
|
}
|
|
|
|
echo new ReflectionFunction('foo'), "\n";
|
|
echo new ReflectionMethod('bar', 'foo'), "\n";
|
|
?>
|
|
--EXPECTF--
|
|
Function [ <user> function foo ] {
|
|
@@ %sbug41061.php 3 - 4
|
|
}
|
|
|
|
Method [ <user> private method foo ] {
|
|
@@ %sbug41061.php 7 - 8
|
|
}
|
|
|