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

testCanGetArrayFromAnArray() public method

    public function testCanGetArrayFromAnArray()
    {
        // ----------------------------------------------------------------
        // setup your test
        $obj = new WrappedConfig();
        $obj->loadConfigFromFile(__DIR__ . "/wrapped-config-2.json");
        $expected = $obj->getConfig()->storyplayer->roles;
        // ----------------------------------------------------------------
        // perform the change
        $actual = $obj->getArray("storyplayer.roles");
        // ----------------------------------------------------------------
        // test the results
        $this->assertEquals($expected, $actual);
    }
WrappedConfigTest