text4u

CreatesApplication.php 375B

123456789101112131415161718192021
  1. <?php
  2. namespace Tests;
  3. use Illuminate\Contracts\Console\Kernel;
  4. use Illuminate\Foundation\Application;
  5. trait CreatesApplication
  6. {
  7. /**
  8. * Creates the application.
  9. */
  10. public function createApplication(): Application
  11. {
  12. $app = require __DIR__.'/../bootstrap/app.php';
  13. $app->make(Kernel::class)->bootstrap();
  14. return $app;
  15. }
  16. }