Respect\Config\ContainerTest::testLazyLoadinessOnMultipleConfigLevels PHP Метод

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

    public function testLazyLoadinessOnMultipleConfigLevels()
    {
        $GLOBALS['_SHIT_'] = false;
        $ini = <<<INI
[foo Respect\\Config\\WheneverIBornIPopulateAGlobalCalled_SHIT_]
child = ""
[bar Respect\\Config\\WheneverIBornIPopulateAGlobalCalled_SHIT_]
child = [foo]
[baz Respect\\Config\\WheneverIBornIPopulateAGlobalCalled_SHIT_]
child = [bar]
INI;
        $c = new Container();
        $c->loadArray(parse_ini_string($ini, true));
        $this->assertFalse($GLOBALS['_SHIT_']);
        $GLOBALS['_SHIT_'] = false;
    }