/** * Test if the `removeComments` remove all comments inside the document. */ public function testRemoveComments() { $doc = new XMLDocument(); $doc->load(Bootstrap::$resourceDir . '/common/xml/config.xml'); $doc->removeComments(); $this->assertEquals(0, $doc('.//comment()')->length); }