php-src/ext/reflection/tests/bug41061.phpt
2008-05-24 13:34:22 +00:00

29 lines
465 B
PHP
Executable File

--TEST--
Reflection Bug #41061 ("visibility error" in ReflectionFunction::export())
--FILE--
<?php
function foo() {
}
class bar {
private function foo() {
}
}
Reflection::export(new ReflectionFunction('foo'));
Reflection::export(new ReflectionMethod('bar', 'foo'));
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
Function [ <user> function foo ] {
@@ %sbug41061.php 3 - 4
}
Method [ <user> private method foo ] {
@@ %sbug41061.php 7 - 8
}
===DONE===