addEntry() public méthode

useful for adding in hard-coded config options
public addEntry ( string $name, object $config )
$name string the name of the config to inject
$config object the config to inject into our list
 /**
  * @covers DataSift\Storyplayer\ConfigLib\ConfigList::__construct
  * @covers DataSift\Storyplayer\ConfigLib\ConfigList::addEntry
  * @expectedException DataSift\Storyplayer\ConfigLib\E4xx_IncompatibleConfigClass
  */
 public function testManuallyAddedConfigsMustBeCompatibleType()
 {
     // ----------------------------------------------------------------
     // setup your test
     $obj = new ConfigList("DataSift\\Storyplayer\\ConfigLib\\StoryplayerConfig", __DIR__ . '/ConfigListTestData1');
     $obj->findConfigs();
     $expectedName = 'injected-1';
     $expectedConfig = new WrappedConfig();
     // ----------------------------------------------------------------
     // perform the change
     $obj->addEntry($expectedName, $expectedConfig);
 }