/** * Tests toArray method * * @author Serghei Iakovlev <*****@*****.**> * @since 2016-03-04 */ 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); }); }