public function addInclude() { $s = new Stylesheet(); $s->addInclude('portlets/welcome.portlet.xsl'); $this->assertEquals('<xsl:include href="portlets/welcome.portlet.xsl"></xsl:include>', trim($this->getElementsByTagName($s->root, 'xsl:include')->get(0)->getSource(INDENT_NONE))); }