Phalcon\Test\Config\Adapter\XmlTest::testConfigToArray PHP Method

testConfigToArray() public method

Tests toArray method
Since: 2016-03-04
Author: Serghei Iakovlev ([email protected])
public testConfigToArray ( )
    public function testConfigToArray()
    {
        $this->specify("Transform Config to the array does not returns the expected result", function () {
            $expected = ['phalcon' => ['baseuri' => '/phalcon/'], 'models' => ['metadata' => 'memory'], 'nested' => ['config' => ['parameter' => 'here']]];
            $config = new Xml(PATH_DATA . 'config/config.xml');
            expect($config->toArray())->equals($expected);
        });
    }