Display the category name of a post that is in two different categories

This should get you going in the right direction.

echo '<div class="testata_inner">';
$cat = get_the_category($recent["ID"]); //get the category array
if ($cat[0]->name != "Featured") { //check if the category is "featured"
    $catname = $cat[0]->name; //set $catname variable to "featured"
} else {
    $catname = $cat[1]->name; //or set $catname variable to "other category name"
}
echo '<span class="'. $catname . '">';
echo $catname; //output $catname variable
echo '</span>';