Example #1
0
 public function testRoot()
 {
     $root = new SXE('<root><child /></root>');
     $parent = $root->parentNode();
     /**
      * When asked for the root node's parent, DOM returns the root node itself
      */
     $this->assertTrue($parent instanceof SXE);
     $this->assertSame(dom_import_simplexml($root), dom_import_simplexml($parent));
 }