2017-02-05 15:42:00 +01:00
|
|
|
<?php
|
2017-08-11 05:36:05 +02: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 21:08:51 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2017-02-05 15:42:00 +01:00
|
|
|
namespace Tests;
|
|
|
|
|
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
|
|
|
|
2017-08-12 10:27:45 +02:00
|
|
|
/**
|
|
|
|
* Trait CreatesApplication
|
|
|
|
*
|
|
|
|
* @package Tests
|
|
|
|
*/
|
2017-02-05 15:42:00 +01:00
|
|
|
trait CreatesApplication
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Creates the application.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Foundation\Application
|
|
|
|
*/
|
|
|
|
public function createApplication()
|
|
|
|
{
|
2017-03-05 11:19:06 +01:00
|
|
|
$app = require __DIR__ . '/../bootstrap/app.php';
|
2017-02-05 15:42:00 +01:00
|
|
|
|
|
|
|
$app->make(Kernel::class)->bootstrap();
|
|
|
|
|
|
|
|
return $app;
|
|
|
|
}
|
2017-02-05 19:51:58 +01:00
|
|
|
}
|