mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fix tests
This commit is contained in:
parent
76ae4e10bf
commit
9f8ba2e8a1
@ -14,7 +14,7 @@ function __autoload($c)
|
||||
}
|
||||
}
|
||||
|
||||
$a = new Reflection_Class('autoload_class');
|
||||
$a = new ReflectionClass('autoload_class');
|
||||
|
||||
if (is_object($a)) {
|
||||
echo "OK\n";
|
||||
|
@ -3,8 +3,6 @@ invoke with non object or null value
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
include_once dirname(__FILE__).'/exception.inc';
|
||||
|
||||
class a {
|
||||
function a(){
|
||||
}
|
||||
@ -14,26 +12,26 @@ class b {
|
||||
|
||||
$b = new b();
|
||||
|
||||
$a=new Reflection_Class("a");
|
||||
$a=new ReflectionClass("a");
|
||||
$m=$a->getMethod("a");
|
||||
|
||||
try {
|
||||
$m->invoke(null);
|
||||
} catch (reflection_exception $E) {
|
||||
} catch (ReflectionException $E) {
|
||||
echo $E->getMessage()."\n";
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
$m->invoke($b);
|
||||
} catch (reflection_exception $E) {
|
||||
} catch (ReflectionException $E) {
|
||||
echo $E->getMessage()."\n";
|
||||
}
|
||||
|
||||
$b = new a();
|
||||
try {
|
||||
$m->invoke($b);
|
||||
} catch (reflection_exception $E) {
|
||||
} catch (ReflectionException $E) {
|
||||
echo $E->getMessage()."\n";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user