function it_should_calculate_proper_depth_depending_on_parent($parent) { $this->setParent($parent); $parent->getDepth()->willReturn(10); $this->getDepth()->shouldReturn(11); }