Example #1
0
 /**
  * @expectedException DOMException
  */
 public function testWrongDocument()
 {
     $root = new SXE('<root />');
     $new = new SXE('<new />');
     $node = new SXE('<node />');
     try {
         $root->replaceChild($new, $node);
     } catch (DOMException $e) {
         $this->assertSame(DOM_WRONG_DOCUMENT_ERR, $e->code);
         throw $e;
     }
 }