public function testCanLoadConfigFile()
{
// ----------------------------------------------------------------
// setup your test
$expectedConfig = new BaseObject();
$expectedConfig->defaults = ["-s", "storyplayer-2.0"];
$expectedName = "storyplayer-config-1";
$obj = new StoryplayerConfig();
// ----------------------------------------------------------------
// perform the change
$obj->loadConfigFromFile(__DIR__ . "/storyplayer-config-1.json");
// ----------------------------------------------------------------
// test the results
$actualConfig = $obj->getConfig();
$actualName = $obj->getName();
$this->assertEquals($expectedConfig, $actualConfig);
$this->assertEquals($expectedName, $actualName);
}