public function testClearEmpty() { $tag = new \r8\HTML\Tag("hr"); $this->assertTrue($tag->isEmpty()); $this->assertSame($tag, $tag->setEmpty(FALSE)); $this->assertFalse($tag->isEmpty()); $this->assertSame($tag, $tag->clearEmpty()); $this->assertTrue($tag->isEmpty()); $tag = new \r8\HTML\Tag("a"); $this->assertFalse($tag->isEmpty()); $this->assertSame($tag, $tag->setEmpty(TRUE)); $this->assertTrue($tag->isEmpty()); $this->assertSame($tag, $tag->clearEmpty()); $this->assertFalse($tag->isEmpty()); }