Phalcon\Test\Config\LoaderTest::testLoadYmlFileConfig PHP Method

testLoadYmlFileConfig() public method

    public function testLoadYmlFileConfig()
    {
        $file = INCUBATOR_FIXTURES . 'Config/config.yml';
        $config = ConfigLoader::load($file);
        $this->assertTrue(is_object($config));
        $this->assertInstanceOf('Phalcon\\Config\\Adapter\\Yaml', $config);
        $this->assertInstanceOf('Phalcon\\Config', $config);
        $this->assertEquals('bar', $config->phalcon->foo);
    }