parent() public method

public parent ( ) : Element | Document | null
return Element | Document | null
Exemplo n.º 1
0
 public function testParentWithoutOwner()
 {
     $element = new Element(new \DOMElement('span', 'hello'));
     $this->assertNull($element->parent());
 }