hypothetical/tests/CreatesApplication.php

22 lines
375 B
PHP
Raw Normal View History

2017-01-26 19:17:37 -05:00
<?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
2023-03-13 17:33:19 -04:00
use Illuminate\Foundation\Application;
2017-01-26 19:17:37 -05:00
trait CreatesApplication
{
/**
* Creates the application.
*/
2023-03-13 17:33:19 -04:00
public function createApplication(): Application
2017-01-26 19:17:37 -05:00
{
$app = require __DIR__.'/../bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();
return $app;
}
}