TbHtml::mutedSpan PHP Method

mutedSpan() public static method

Generates a muted span.
public static mutedSpan ( string $text, array $htmlOptions = [] ) : string
$text string the text.
$htmlOptions array additional HTML attributes.
return string the generated span.
    public static function mutedSpan($text, $htmlOptions = array())
    {
        return self::muted($text, $htmlOptions, 'span');
    }

Usage Example

Exemplo n.º 1
0
 public function testMutedSpan()
 {
     $I = $this->codeGuy;
     $html = TbHtml::mutedSpan('Muted text');
     $span = $I->createNode($html, 'span.muted');
     $I->seeNodeText($span, 'Muted text');
 }
TbHtml