DataSift\Storyplayer\ConfigLib\WrappedConfigTest::testCanUnsetDataFromAnObject PHP Метод

testCanUnsetDataFromAnObject() публичный Метод

    public function testCanUnsetDataFromAnObject()
    {
        // ----------------------------------------------------------------
        // setup your test
        $obj = new WrappedConfig();
        $obj->loadConfigFromFile(__DIR__ . "/wrapped-config-2.json");
        // ----------------------------------------------------------------
        // perform the change
        $obj->unsetData("storyplayer.ipAddress");
        // ----------------------------------------------------------------
        // test the results
        $config = $obj->getConfig();
        $this->assertTrue(isset($config->storyplayer));
        $this->assertFalse(isset($config->storyplayer->ipAddress));
    }
WrappedConfigTest