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

testCanGetAnObjectFromAnObject() public method

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