bug30209.phpt 514 B

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