Пример #1
0
 function testRadioButtons()
 {
     $m = new Mockdown();
     $rendered = $m->render("Select something else:\n\n" . "( ) One\n" . "(o) Two\n" . "( ) Three");
     $this->assertEquals("<pre class=\"mockdown\">Select something else:\n\n" . "<input type=\"radio\" value=\"foo\" > One\n" . "<input type=\"radio\" value=\"foo\" checked=\"checked\"> Two\n" . "<input type=\"radio\" value=\"foo\" > Three</pre>", $rendered);
 }
Пример #2
0
/**
 * Mockdown rendering function.
 * Uses the Mockdown class to do all the real work.
 */
function Mockdown($content)
{
    $m = new Mockdown();
    return $m->render($content);
}