function it_should_call_the_loader_when_adding_mappings(DIDefinitionLoader $loader)
 {
     $mappings = ['some' => 'mappings'];
     $loader->loadAll($mappings, $this)->shouldBeCalled();
     $this->addMappings($mappings);
 }
 /**
  * Add mappings from the DI config to the definition registry.
  * @param array $mappings
  */
 public function addMappings(array $mappings)
 {
     $this->loader->loadAll($mappings, $this);
 }