/**
* @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::loadConfigFromFile()
* @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::getConfig()
* @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::setConfig()
* @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::getName()
* @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::setName()
* @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::getFilename()
* @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::setFilename()
*/
public function testCanLoadConfigFile()
{
// ----------------------------------------------------------------
// setup your test
$expectedConfig = new BaseObject();
$expectedConfig->dummy1 = true;
$expectedName = "wrapped-config-1";
$expectedFilename = __DIR__ . "/wrapped-config-1.json";
$obj = new WrappedConfig();
// ----------------------------------------------------------------
// perform the change
$obj->loadConfigFromFile($expectedFilename);
// ----------------------------------------------------------------
// test the results
$actualConfig = $obj->getConfig();
$actualName = $obj->getName();
$actualFilename = $obj->getFilename();
$this->assertEquals($expectedConfig, $actualConfig);
$this->assertEquals($expectedName, $actualName);
$this->assertEquals($expectedFilename, $actualFilename);
}