<title>Reflection: QA for Issue 3038</title>

<php out='stdout'>
<?php
class Test
{
    protected static $_instance = null;
    protected $_variable = null;
    /**
     * Singleton instance
     */
    public static function getInstance()
    {
        $reflection = new ReflectionClass('Test');
        foreach ($reflection->getProperties() as $property) {
            $name = $property->getName();
            echo "Member: ".$name."\n";
        }
        if (null === self::$_instance) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }
}
    $testInstance = Test::getInstance();

?>
</php>

<compare file='/stdout' escape>
Member: _instance
Member: _variable

</compare>

