public function testAddCustomPrefix() { $book = new fXML($this->ns_xml); $book->addCustomPrefix('_', 'http://will'); $pages = $book->xpath('foo:chapter/_:page'); $this->assertEquals(2, count($pages)); $this->assertEquals(TRUE, $pages[0] instanceof fXML); $this->assertEquals(TRUE, $pages[1] instanceof fXML); }