/** * @test */ public function priorityOfChildIsGreaterByOneOfPriorityOfParent() { $child = new Container(); $this->node->add($child); $this->assertLessThan($this->node->getPriority(), $child->getPriority()); $superParentContainer = new Container(); $superParentContainer->add($this->node); $this->assertLessThan($superParentContainer->getPriority(), $this->node->getPriority()); $this->assertLessThan($this->node->getPriority(), $child->getPriority()); }