cvs: php-src /ext/reflection/tests bug41061.phpt
| From: | Johannes Schl�ter | Date: | Thu, 12 Apr 2007 18:31:57 +0000 |
| Subject: | cvs: php-src /ext/reflection/tests bug41061.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-43848@lists.php.net to get a copy of this message | ||
johannes Thu Apr 12 18:31:57 2007 UTC
Added files:
/php-src/ext/reflection/tests bug41061.phpt
Log:
- Add test
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/bug41061.phpt?view=markup&rev=1.1
Index: php-src/ext/reflection/tests/bug41061.phpt
+++ php-src/ext/reflection/tests/bug41061.phpt
--TEST--
Reflection Bug #41061 ("visibility error" in ReflectionFunction::export())
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--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===