summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug30209.phpt
blob: 0dc453e6c021c1534cb3921be8926e20c5c0cd7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
Reflection Bug #30209 (ReflectionClass::getMethod() lowercases attribute)
--FILE--
<?php

class Foo
{
    private $name = 'testBAR';

    public function testBAR()
    {
        try
        {
            $class  = new ReflectionClass($this);
            var_dump($this->name);
            $method = $class->getMethod($this->name);
            var_dump($this->name);
        }

        catch (Exception $e) {}
    }
}

$foo = new Foo;
$foo->testBAR();
?>
--EXPECT--
string(7) "testBAR"
string(7) "testBAR"