addConfig() public method

add a new config object to the list
public addConfig ( object $config )
$config object the config object to add to the list
Esempio n. 1
0
 /**
  * @covers DataSift\Storyplayer\ConfigLib\HardCodedList::__construct
  * @covers DataSift\Storyplayer\ConfigLib\HardCodedList::addConfig
  * @expectedException DataSift\Storyplayer\ConfigLib\E4xx_IncompatibleConfigClass
  */
 public function testCanAddedConfigsMustBeCompatibleType()
 {
     // ----------------------------------------------------------------
     // setup the test
     $expectedName = 'test-config';
     $obj = new HardCodedList('DataSift\\Storyplayer\\ConfigLib\\StoryplayerConfig');
     // ----------------------------------------------------------------
     // perform the change
     $config = new WrappedConfig();
     $config->setName($expectedName);
     $obj->addConfig($config);
 }