Bluz\Tests\TestCase::getApp PHP Method

getApp() protected static method

Get Application instance
protected static getApp ( ) : BootstrapTest
return BootstrapTest
    protected static function getApp()
    {
        if (!self::$app) {
            $env = getenv('BLUZ_ENV') ?: 'testing';
            self::$app = BootstrapTest::getInstance();
            self::$app->init($env);
        }
        return self::$app;
    }