Phalcon\Test\UnitTestCase::getConfig PHP Method

getConfig() public method

Returns the Config object if any.
public getConfig ( ) : null | Phalcon\Config
return null | Phalcon\Config
    public function getConfig()
    {
        if (!$this->config instanceof Config && $this->getDI()->has('config')) {
            return $this->getDI()->get('config');
        }
        return $this->config;
    }