/** * @testdox getElementsByRegexp() can return elements created via <xsl:copy-of/> */ public function testGetElementsByRegexp() { $dom = TemplateHelper::loadTemplate('<xsl:copy-of select="x"/><xsl:copy-of select="foo"/>'); $this->assertSame([$dom->firstChild->firstChild->nextSibling], TemplateHelper::getElementsByRegexp($dom, '/^foo$/')); }