cvs: php-src /tests/reflection bug30148.phpt

From: Date: Sun, 19 Sep 2004 11:26:05 +0000
Subject: cvs: php-src /tests/reflection bug30148.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-28714@lists.php.net to get a copy of this message
helly Sun Sep 19 07:26:05 2004 EDT Added files: /php-src/tests/reflection bug30148.phpt Log: Add new test http://cvs.php.net/co.php/php-src/tests/reflection/bug30148.phpt?r=1.1&p=1 Index: php-src/tests/reflection/bug30148.phpt +++ php-src/tests/reflection/bug30148.phpt --TEST-- Bug #30148 (ReflectionMethod->isConstructor() fails for inherited classes) --FILE-- <?php class Root { function Root() {} } class Base extends Root { function __construct() {} } class Derived extends Base { } $a = new ReflectionMethod('Root','Root'); $b = new ReflectionMethod('Base','Root'); $c = new ReflectionMethod('Base','__construct'); $d = new ReflectionMethod('Derived','Root'); $e = new ReflectionMethod('Derived','__construct'); var_dump($a->isConstructor()); var_dump($b->isConstructor()); var_dump($c->isConstructor()); var_dump($d->isConstructor()); var_dump($e->isConstructor()); ?> ===DONE=== --EXPECT-- bool(true) bool(false) bool(true) bool(false) bool(true) ===DONE===

« previous php.cvs (#28714) next »