helly           Thu Sep 23 14:38:35 2004 EDT

  Added files:                 
    /php-src/tests/reflection   bug30209.phpt 
  Log:
  Add new test
  

http://cvs.php.net/co.php/php-src/tests/reflection/bug30209.phpt?r=1.1&p=1
Index: php-src/tests/reflection/bug30209.phpt
+++ php-src/tests/reflection/bug30209.phpt
--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===

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to