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

testCanGetDataFromAnObject() public method

    public function testCanGetDataFromAnObject()
    {
        // ----------------------------------------------------------------
        // setup your test
        $obj = new WrappedConfig();
        $obj->loadConfigFromFile(__DIR__ . "/wrapped-config-2.json");
        $expected1 = "127.0.0.1";
        $expected2 = 500;
        // ----------------------------------------------------------------
        // perform the change
        $actual1 = $obj->getData("storyplayer.ipAddress");
        $actual2 = $obj->getData("storyplayer.user.id");
        // ----------------------------------------------------------------
        // test the results
        $this->assertEquals($expected1, $actual1);
        $this->assertEquals($expected2, $actual2);
    }
WrappedConfigTest