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
 /**
  * @test
  */
 public function getParentReturnsNullForARootNode()
 {
     $node = new NodeData('/', $this->mockWorkspace);
     $this->assertNull($node->getParent());
 }