public function testAll() { $xml = ' <ns1:NCIPMessage xmlns:ns1="http://www.niso.org/2008/ncip"> <ns1:Test> Hello </ns1:Test> </ns1:NCIPMessage>'; $dom = new QuiteSimpleXMLElement($xml); $this->assertCount(0, $dom->all('/Test[prop="val"]')); $this->assertCount(1, $dom->all('/ns1:NCIPMessage/ns1:Test')); }