public function testXpathShouldReturnInstancesOfQuiteSimpleXMLElement() { $el = QuiteSimpleXMLElement::make('<doc xmlns="http://www.loc.gov/zing/srw/"><hello>first</hello><hello>second</hello></doc>', ['s' => 'http://www.loc.gov/zing/srw/']); $this->assertContainsOnlyInstancesOf('Danmichaelo\\QuiteSimpleXMLElement\\QuiteSimpleXMLElement', $el->xpath('hello')); }