public function itAddsTheParentEvenIfChildIsAlreadyStacked()
 {
     $this->collector->addChild(1, 1123);
     $this->collector->addChild(1, 1124);
     $this->assertEqual($this->collector->getAllChildrenIds(), array(1));
     $this->assertEqual($this->collector->getAllParents(), array(1123, 1124));
 }
 public function itDoesNotFailWhenChildDoesNotExistAnymore()
 {
     $this->unknown_artifact_id = 666;
     $this->collector->addChild($this->unknown_artifact_id, 'whatever');
     expect($this->artifact_xml_exporter)->exportSnapshotWithoutComments()->never();
     expect($this->file_updater)->update()->never();
     $this->exporter->exportChildren($this->artifact_xml);
 }