makeOpeningTag() public method

Generates the opening tag for this object.
public makeOpeningTag ( ) : string
return string
Example #1
0
 public function testMakeOpeningTagSelfClosing()
 {
     $attr = ['class' => ['value' => 'clear-fix', 'doubleQuote' => true]];
     $tag = new Tag('div');
     $tag->selfClosing()->setAttributes($attr);
     $this->assertEquals('<div class="clear-fix" />', $tag->makeOpeningTag());
 }