cvs: php-src /tests/lang bug26640.phpt /tests/reflection invoke.phpt

From: Date: Tue, 30 Mar 2004 21:17:52 +0000
Subject: cvs: php-src /tests/lang bug26640.phpt /tests/reflection invoke.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-26885@lists.php.net to get a copy of this message
helly Tue Mar 30 16:17:52 2004 EDT Modified files: /php-src/tests/reflection invoke.phpt /php-src/tests/lang bug26640.phpt Log: Fix tests http://cvs.php.net/diff.php/php-src/tests/reflection/invoke.phpt?r1=1.2&r2=1.3&ty=u Index: php-src/tests/reflection/invoke.phpt diff -u php-src/tests/reflection/invoke.phpt:1.2 php-src/tests/reflection/invoke.phpt:1.3 --- php-src/tests/reflection/invoke.phpt:1.2 Tue Mar 2 10:57:41 2004 +++ php-src/tests/reflection/invoke.phpt Tue Mar 30 16:17:52 2004 @@ -3,8 +3,6 @@ --FILE-- <?php -include_once dirname(__FILE__).'/exception.inc'; - class a { function a(){ } @@ -14,26 +12,26 @@ $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"; } http://cvs.php.net/diff.php/php-src/tests/lang/bug26640.phpt?r1=1.1&r2=1.2&ty=u Index: php-src/tests/lang/bug26640.phpt diff -u php-src/tests/lang/bug26640.phpt:1.1 php-src/tests/lang/bug26640.phpt:1.2 --- php-src/tests/lang/bug26640.phpt:1.1 Fri Jan 16 13:24:31 2004 +++ php-src/tests/lang/bug26640.phpt Tue Mar 30 16:17:52 2004 @@ -14,7 +14,7 @@ } } -$a = new Reflection_Class('autoload_class'); +$a = new ReflectionClass('autoload_class'); if (is_object($a)) { echo "OK\n";

« previous php.cvs (#26885) next »