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

testGetArrayThrowsExceptionWhenNonObjectRetrieved() public method

    public function testGetArrayThrowsExceptionWhenNonObjectRetrieved()
    {
        // ----------------------------------------------------------------
        // setup your test
        $obj = new WrappedConfig();
        $obj->loadConfigFromFile(__DIR__ . "/wrapped-config-2.json");
        $expected = $obj->getConfig()->storyplayer;
        // ----------------------------------------------------------------
        // perform the change
        $obj->getArray("storyplayer.ipAddress");
    }
WrappedConfigTest