DataSift\Storyplayer\ConfigLib\WrappedConfigTest::testUnsetDataThrowsExceptionWhenConfigPathNotFoundDeepInAnObject PHP Method

testUnsetDataThrowsExceptionWhenConfigPathNotFoundDeepInAnObject() public method

    public function testUnsetDataThrowsExceptionWhenConfigPathNotFoundDeepInAnObject()
    {
        // ----------------------------------------------------------------
        // setup your test
        $obj = new WrappedConfig();
        $obj->loadConfigFromFile(__DIR__ . "/wrapped-config-2.json");
        // ----------------------------------------------------------------
        // perform the change
        $obj->unsetData("storyplayer.user.does.not.exist");
    }
WrappedConfigTest