PhpSpec\Laravel\Util\Laravel::createApplication PHP Method

createApplication() protected method

Creates a Laravel application.
protected createApplication ( ) : Illuminate\Foundation\Application
return Illuminate\Foundation\Application
    protected function createApplication()
    {
        putenv('APP_ENV=' . $this->getEnv());
        $app = (require $this->appPath);
        $app->bootstrapWith(['Illuminate\\Foundation\\Bootstrap\\DetectEnvironment', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\ConfigureLogging', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\SetRequestForConsole', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders']);
        Carbon::setTestNow(Carbon::now());
        return $app;
    }