summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug30209.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/bug30209.phpt')
-rwxr-xr-xext/reflection/tests/bug30209.phpt31
1 files changed, 31 insertions, 0 deletions
diff --git a/ext/reflection/tests/bug30209.phpt b/ext/reflection/tests/bug30209.phpt
new file mode 100755
index 000000000..6705c6704
--- /dev/null
+++ b/ext/reflection/tests/bug30209.phpt
@@ -0,0 +1,31 @@
+--TEST--
+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();
+?>
+===DONE===
+--EXPECTF--
+string(7) "testBAR"
+string(7) "testBAR"
+===DONE===