]> granicus.if.org Git - php/commitdiff
Add new test
authorMarcus Boerger <helly@php.net>
Thu, 23 Sep 2004 18:38:34 +0000 (18:38 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 23 Sep 2004 18:38:34 +0000 (18:38 +0000)
ext/reflection/tests/bug30209.phpt [new file with mode: 0755]

diff --git a/ext/reflection/tests/bug30209.phpt b/ext/reflection/tests/bug30209.phpt
new file mode 100755 (executable)
index 0000000..8afb651
--- /dev/null
@@ -0,0 +1,31 @@
+--TEST--
+Bug #30209 ()
+--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===