/**
  * testing getSregProperties
  *
  */
 public function testGetSregProperties()
 {
     $this->assertSame(array("nickname", "email", "fullname", "dob", "gender", "postcode", "country", "language", "timezone"), Zend_OpenId_Extension_Sreg::getSregProperties());
 }
            if ($consumer->verify($_GET, $id, $sreg)) {
                $status = "VALID {$id}";
                $data = $sreg->getProperties();
            } else {
                $status = "INVALID {$id} (" . $consumer->getError() . ")";
            }
        } else {
            if ($_GET['openid_mode'] == "cancel") {
                $status = "CANCELED";
            }
        }
    }
}
$sreg_html = "";
$sreg = new Zend_OpenId_Extension_Sreg();
foreach (Zend_OpenId_Extension_Sreg::getSregProperties() as $prop) {
    $val = isset($data[$prop]) ? $data[$prop] : "";
    $sreg_html .= <<<EOF
<tr><td>{$prop}</td>
<td>
  <input type="radio" name="{$prop}" value="required">
</td><td>
  <input type="radio" name="{$prop}" value="optional">
</td><td>
  <input type="radio" name="{$prop}" value="none" checked="1">
</td><td>
  {$val}
</td></tr>
EOF;
}
?>