Beispiel #1
0
 public function testIsEmpty()
 {
     $tag = new \r8\HTML\Tag("hr");
     $this->assertTrue($tag->isEmpty());
     $tag->setContent("Random");
     $this->assertFalse($tag->isEmpty());
     $tag->clearContent();
     $this->assertTrue($tag->isEmpty());
     $tag->setTag('a');
     $this->assertFalse($tag->isEmpty());
 }