/** * @test * @depends selfClosingTag */ public function userDefinedSelfClosingTag() { $html = new Silkworm(); $html->defineSelfClosingTags("ironman"); $html->ironman(); $this->assertSame("<ironman>\n", (string) $html, "Failed to return ironman tag as parent (self-closing)."); }