/**
* @covers DataSift\Storyplayer\ConfigLib\HardCodedList::__construct
* @covers DataSift\Storyplayer\ConfigLib\HardCodedList::addConfig
* @covers DataSift\Storyplayer\ConfigLib\HardCodedList::getConfigs
*/
public function testCanAddNewConfig()
{
// ----------------------------------------------------------------
// setup the test
$expectedName = 'test-config';
$obj = new HardCodedList('DataSift\\Storyplayer\\ConfigLib\\WrappedConfig');
// ----------------------------------------------------------------
// perform the change
$config = new WrappedConfig();
$config->setName($expectedName);
$obj->addConfig($config);
// ----------------------------------------------------------------
// test the results
$configs = $obj->getConfigs();
$this->assertTrue(isset($configs[$expectedName]));
$this->assertSame($configs[$expectedName], $config);
}