示例#1
0
 public function testTagMethods()
 {
     $tag = new Tag('span');
     $tag->id('test')->setContent('content text')->addClass('text-center')->addClass('bg-primary');
     $this->assertEquals('span', $tag->getTag());
     $this->assertEquals('<span id="test" class="text-center bg-primary">content text</span>', (string) $tag);
 }