Phalcon\Test\Unit\ConfigTest::testChildArrayToConfigObject PHP Метод

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

Tests converting child array to config object
С версии: 2014-11-12
Автор: Rian Orie ([email protected])
    public function testChildArrayToConfigObject()
    {
        $this->specify("Child node don't converted to the config object", function () {
            $config = new Config(['childNode' => ['A', 'B', 'C']]);
            expect($config->childNode)->isInstanceOf('Phalcon\\Config');
            expect($config->get('childNode'))->isInstanceOf('Phalcon\\Config');
            expect($config->offsetGet('childNode'))->isInstanceOf('Phalcon\\Config');
        });
    }