Annotation of embedaddon/php/ext/reflection/tests/bug30209.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Reflection Bug #30209 (ReflectionClass::getMethod() lowercases attribute)
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: class Foo
        !             7: {
        !             8:        private $name = 'testBAR';
        !             9: 
        !            10:        public function testBAR()
        !            11:        {
        !            12:                try
        !            13:                {
        !            14:                        $class  = new ReflectionClass($this);
        !            15:                        var_dump($this->name);
        !            16:                        $method = $class->getMethod($this->name);
        !            17:                        var_dump($this->name);
        !            18:                }
        !            19: 
        !            20:                catch (Exception $e) {}
        !            21:        }
        !            22: }
        !            23: 
        !            24: $foo = new Foo;
        !            25: $foo->testBAR();
        !            26: ?>
        !            27: ===DONE===
        !            28: --EXPECTF--
        !            29: string(7) "testBAR"
        !            30: string(7) "testBAR"
        !            31: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>