/** * @fn test_lookup_url * @short Test method for lookup_url. */ public function test_lookup_url() { $term = 'Valentino Rossi'; $lang = 'it'; $wiki_url = 'http://it.wikipedia.org/wiki/Valentino_Rossi'; $this->assertEquals($wiki_url, Wikipedia::lookup_url($term, $lang), 'Bad wikipedia URL'); $term = 'La Coruña'; $lang = 'es'; $wiki_url = 'http://es.wikipedia.org/wiki/La_Coru%C3%83%C2%B1a'; $this->assertEquals($wiki_url, Wikipedia::lookup_url($term, $lang), 'Bad wikipedia URL'); }
echo Antispam::$first_operand; ?> + <?php echo Antispam::$second_operand; ?> = ? </label> <input type="text" name="antispam_math_result" id="f_antispam_math_result" tabindex="5" size="3" /> </p> <p class="lighter padded-to-label"> <?php echo l("An asterisk (*) denotes a required field."); ?> <?php printf(l('%s syntax allowed.'), a('Markdown', array('class' => 'external', 'href' => Wikipedia::lookup_url('Markdown')))); ?> </p> <p class="padded-to-label"> <input type="checkbox" name="followup_email_notify" id="f_followup_email_notify" value="1" /> <label for="f_followup_email_notify"> <?php echo l('Notify me of followup comments via e-mail'); ?> </label> </p> <p class="form-left padded-to-label"> <input type="hidden" name="post_id" value="<?php echo $this->article->id; ?> " />