2017-02-05 08:42:00 -06:00
|
|
|
<?php
|
2017-08-10 22:36:05 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* CreatesApplication.php
|
|
|
|
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
|
|
|
* This software may be modified and distributed under the terms of the
|
|
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
|
|
*
|
|
|
|
* See the LICENSE file for details.
|
|
|
|
*/
|
|
|
|
|
2017-08-18 14:08:51 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2017-02-05 08:42:00 -06:00
|
|
|
namespace Tests;
|
|
|
|
|
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
|
|
|
|
2017-08-12 03:27:45 -05:00
|
|
|
/**
|
|
|
|
* Trait CreatesApplication
|
|
|
|
*
|
|
|
|
* @package Tests
|
|
|
|
*/
|
2017-02-05 08:42:00 -06:00
|
|
|
trait CreatesApplication
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Creates the application.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Foundation\Application
|
|
|
|
*/
|
|
|
|
public function createApplication()
|
|
|
|
{
|
2017-03-05 04:19:06 -06:00
|
|
|
$app = require __DIR__ . '/../bootstrap/app.php';
|
2017-02-05 08:42:00 -06:00
|
|
|
|
|
|
|
$app->make(Kernel::class)->bootstrap();
|
|
|
|
|
|
|
|
return $app;
|
|
|
|
}
|
2017-02-05 12:51:58 -06:00
|
|
|
}
|