1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6namespace Tests;
7
8use Illuminate\Contracts\Console\Kernel;
9
10trait CreatesApplication
11{
12 public static function createApp()
13 {
14 $app = require __DIR__.'/../bootstrap/app.php';
15 $app->make(Kernel::class)->bootstrap();
16
17 return $app;
18 }
19
20 /**
21 * Creates the application.
22 *
23 * @return \Illuminate\Foundation\Application
24 */
25 public function createApplication()
26 {
27 return static::createApp();
28 }
29}