/** * @param $name * @param \AndreasGlaser\Helpers\Html\AttributesHelper|array|null $attributesHelper * * @return string * @author Andreas Glaser */ public static function glyphIcon($name, $attributesHelper = null) { $attributesHelper = AttributesHelper::f($attributesHelper); return HtmlHelper::span('', $attributesHelper->addClass('glyphicon')->addClass('glyphicon-' . $name)); }
/** * @author Andreas Glaser */ public function testSpan() { $this->assertEquals('<span id="CHESTNUT" class="horseradish cheese peanuts" data-beef-steak="XYZ ">Some Nice Content</span>', HtmlHelper::span('Some Nice Content', $this->testAttributes)); }