getParent() public method

Returns the parent node of this node
public getParent ( ) : NodeData
return NodeData The parent node or NULL if this is the root node
コード例 #1
0
 /**
  * @test
  */
 public function getParentReturnsNullForARootNode()
 {
     $node = new NodeData('/', $this->mockWorkspace);
     $this->assertNull($node->getParent());
 }