예제 #1
0
 public function testAppendingANewElementWithinANamespaceByPrefix()
 {
     $this->dom->registerNamespace('t', 'test:uri');
     $node = $this->node->appendElementPrefix('t', 'append', 'text');
     $this->assertInstanceOf('TheSeer\\fDOM\\fDOMElement', $node);
     $this->assertEquals(1, $this->node->query('count(t:append)'));
     $this->assertEquals('text', $node->nodeValue);
 }