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

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

Tests toArray method
С версии: 2016-01-17
Автор: Serghei Iakovlev ([email protected])
public testConfigToArray ( )
    public function testConfigToArray()
    {
        $this->specify("Transform Config to the array does not returns the expected result", function () {
            $settings = ['database' => ['adapter' => 'Mysql', 'host' => 'localhost', 'username' => 'scott', 'password' => 'cheetah', 'name' => 'test_db'], 'other' => [1, 2, 3, 4]];
            $config = new Config($settings);
            expect($config->toArray())->equals($settings);
        });
    }