Ejemplo n.º 1
0
 /**
  * @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());
 }