diff --git a/bootstrap/app.php b/bootstrap/app.php new file mode 100644 index 00000000..b434403e --- /dev/null +++ b/bootstrap/app.php @@ -0,0 +1,24 @@ +singleton( + Illuminate\Contracts\Http\Kernel::class, + Blumilk\Meetup\Core\Http\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Console\Kernel::class, + Blumilk\Meetup\Core\Console\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Debug\ExceptionHandler::class, + Blumilk\Meetup\Core\Exceptions\Handler::class +); + +return $app; diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/bootstrap/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/phpunit.xml b/phpunit.xml index 96c6ff7a..65a00d5c 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -16,8 +16,7 @@ - - + diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php new file mode 100644 index 00000000..efeacce9 --- /dev/null +++ b/tests/CreatesApplication.php @@ -0,0 +1,20 @@ +make(Kernel::class)->bootstrap(); + + return $app; + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 00000000..53411164 --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,12 @@ +