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>$QxYr9|
gVQBo|j-
0EmCpRr-p#;!G5bC&HdG<1+o=$Rp X+))<}?]+Q*JCnי+9S*J\Yl6?HWMY,ڒVZ\:kڗ-bGX8Fğ5ZE1k׎#q@a|6hG\u^L*)@rT+8=t;*)#v|kr#mvPS4K5ڡyI6c(3i8	-xj!Zx-췕~M {BԄsxhaW`?,:3"^OtkU7DK/>Sgd?fy!6[-	%e?rup{E5tkΎ\<ِc^I3mN?WRLHZ6bEv-Lm0M'zhXytp%L!NTV0+p ,VL=־}'@#$6٣zݝI+`{}b4s͜3j沟Mr*Sy}ݿyߢ89{g$1FsVzR{.2dL[r)(XZ]Y1"Ox%>
b%ݮ8'qn	Ocm!ϋka_q|[Oy	>%\<01
{/dCF^Y(G<zsݩ&FeEznSd/k>pq-Jj{c}x d;z l5Q~~#z nG;hbn]'{Ҥ(PD`w!P-?PF%@飕|F%=1~DQͨOÎYkOtBHE*]n/(S{О+bb>)^aR_!CuZ(LGԲCUoka_q|[y"d:=dQ#_WN<͡vywЊ/[JE9ݩE'ANlƎsFqeS}D7{%%N*i	m9%iAkȃ^>!GQF+.<+w֪"5kn1LHQs cDL9
Ggl/DH(m>r8oTE^cY{T;2YNQd}N<!=>*CB'2Ȟb,ʿpfhv(XxER~L?QfZ+b~w9E=̲D["7HRhl.(yio7heky[ЊM#(ǫO@GIgSA!#vd|t%} =-\Lw"ZfމO+_Qe>ڹI'qG0Ah0*j]o펛^Q:$8{uJ6/QEq&q)1˘qϝDƑ=~_Fs<\hm0V)->h]~+G8|0QvlpA4TJ-wf?`Z>!pu^ǲRCH%2[˨[sqF_choice = "choice_2";

        $out = "";
        foreach ($choices as $choice_value => $choice_label) {
            $html_field_id = $name . '_' . $choice_value;
            $out .= '<input type="radio" name="' . $name . '" id="' . $html_field_id
                . '" value="' . htmlspecialchars($choice_value) . '"';
            if ($choice_value == $checked_choice) {
                $out .= ' checked="checked"';
            }
            $out .= ' />' . "\n";
            $out .= '<label for="' . $html_field_id . '">' . $choice_label
                . '</label>';
            $out .= "\n";
        }

        $this->assertEquals(
            PMA\libraries\Util::getRadioFields(
                $name, $choices, $checked_choice, false
            ),
            $out
        );
    }

    /**
     * Test for getRadioFields
     *
     * @return void
     */
    function testGetRadioFieldsEscapeLabelEscapeLabel()
    {
        $name = "test_display_radio";
        $choices = array('value_1'=>'choice_1', 'value_&2'=>'choice&_&lt;2&gt;');
        $checked_choice = "value_2";

        $out = "";
        foreach ($choices as $choice_value => $choice_label) {
            $html_field_id = $name . '_' . $choice_value;
            $out .= '<input type="radio" name="' . $name . '" id="' . $html_field_id
                . '" value="' . htmlspecialchars($choice_value) . '"';
            if ($choice_value == $checked_choice) {
                $out .= ' checked="checked"';
            }
            $out .= ' />' . "\n";
            $out .= '<label for="' . $html_field_id . '">'
                . htmlspecialchars($choice_label) . '</label>';
            $out .= '<br />';
            $out .= "\n";
        }

        $this->assertEquals(
            PMA\libraries\Util::getRadioFields(
                $name, $choices, $checked_choice, true, true
            ),
            $out
        );
    }

    /**
     * Test for getRadioFields
     *
     * @return void
     */
    function testGetRadioFieldsEscapeLabelNotEscapeLabel()
    {
        $name = "test_display_radio";
        $choices = array('value_1'=>'choice_1', 'value_&2'=>'choice&_&lt;2&gt;');
        $checked_choice = "value_2";

        $out = "";
        foreach ($choices as $choice_value => $choice_label) {
            $html_field_id = $name . '_' . $choice_value;
            $out .= '<input type="radio" name="' . $name . '" id="' . $html_field_id
                . '" value="' . htmlspecialchars($choice_value) . '"';
            if ($choice_value == $checked_choice) {
                $out .= ' checked="checked"';
            }
            $out .= ' />' . "\n";
            $out .= '<label for="' . $html_field_id . '">' . $choice_label
                . '</label>';
            $out .= '<br />';
            $out .= "\n";
        }

        $this->assertEquals(
            PMA\libraries\Util::getRadioFields(
                $name, $choices, $checked_choice, true, false
            ),
            $out
        );
    }

    /**
     * Test for getRadioFields
     *
     * @return void
     */
    function testGetRadioFieldsEscapeLabelEscapeLabelWithClass()
    {
        $name = "test_display_radio";
        $choices = array('value_1'=>'choice_1', 'value_&2'=>'choice&_&lt;2&gt;');
        $checked_choice = "value_2";
        $class = "test_class";

        $out = "";
        foreach ($choices as $choice_value => $choice_label) {
            $html_field_id = $name . '_' . $choice_value;
            $out .= '<div class="' . $class . '">';
            $out .= '<input type="radio" name="' . $name . '" id="' . $html_field_id
                . '" value="' . htmlspecialchars($choice_value) . '"';
            if ($choice_value == $checked_choice) {
                $out .= ' checked="checked"';
            }
            $out .= ' />' . "\n";
            $out .= '<label for="' . $html_field_id . '">'
                . htmlspecialchars($choice_label) . '</label>';
            $out .= '<br />';
            $out .= '</div>';
            $out .= "\n";
        }

        $this->assertEquals(
            PMA\libraries\Util::getRadioFields(
                $name, $choices, $checked_choice, true, true, $class
            ),
            $out
        );
    }
}