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

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

Tests standard config simple array
С версии: 2012-09-11
Автор: Andres Gutierrez ([email protected])
    public function testStandardConfigSimpleArray()
    {
        $this->specify("Comparison of objects returned a not identical result", function () {
            $expectedConfig = PhConfig::__set_state(['database' => PhConfig::__set_state(['adapter' => 'Mysql', 'host' => 'localhost', 'username' => 'scott', 'password' => 'cheetah', 'name' => 'test_db']), 'other' => [0 => 1, 1 => 2, 2 => 3, 3 => 4]]);
            $settings = ['database' => ['adapter' => 'Mysql', 'host' => 'localhost', 'username' => 'scott', 'password' => 'cheetah', 'name' => 'test_db'], 'other' => [1, 2, 3, 4]];
            expect(new PhConfig($settings))->equals($expectedConfig);
        });
    }