php-src/ext/reflection/tests/bug41061.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

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
}