Browse Source

Fix tests

PEAR_1_4DEV
Marcus Boerger 23 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)) { if (is_object($a)) {
echo "OK\n"; echo "OK\n";

10
ext/reflection/tests/invoke.phpt

@ -3,8 +3,6 @@ invoke with non object or null value
--FILE-- --FILE--
<?php <?php
include_once dirname(__FILE__).'/exception.inc';
class a { class a {
function a(){ function a(){
} }
@ -14,26 +12,26 @@ class b {
$b = new b(); $b = new b();
$a=new Reflection_Class("a");
$a=new ReflectionClass("a");
$m=$a->getMethod("a"); $m=$a->getMethod("a");
try { try {
$m->invoke(null); $m->invoke(null);
} catch (reflection_exception $E) {
} catch (ReflectionException $E) {
echo $E->getMessage()."\n"; echo $E->getMessage()."\n";
} }
try { try {
$m->invoke($b); $m->invoke($b);
} catch (reflection_exception $E) {
} catch (ReflectionException $E) {
echo $E->getMessage()."\n"; echo $E->getMessage()."\n";
} }
$b = new a(); $b = new a();
try { try {
$m->invoke($b); $m->invoke($b);
} catch (reflection_exception $E) {
} catch (ReflectionException $E) {
echo $E->getMessage()."\n"; echo $E->getMessage()."\n";
} }

Loading…
Cancel
Save