Fix tests

This commit is contained in:
Marcus Boerger 2004-03-30 21:17:52 +00:00
parent 76ae4e10bf
commit 9f8ba2e8a1
2 changed files with 5 additions and 7 deletions

View File

@ -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";

View File

@ -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";
}