Browse Source

Fix tests

PEAR_1_4DEV
Marcus Boerger 22 years ago
parent
commit
9f8ba2e8a1
  1. 2
      ext/reflection/tests/bug26640.phpt
  2. 10
      ext/reflection/tests/invoke.phpt

2
ext/reflection/tests/bug26640.phpt

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

10
ext/reflection/tests/invoke.phpt

@ -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…
Cancel
Save