diff --git a/composer.json b/composer.json index 2a52ca3..6b3a471 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,8 @@ "spatie/macroable": "^1.0", "mindplay/middleman": "^3.0.3", "psr/log": "^1.1", - "laminas/laminas-zendframework-bridge": "^1.4" + "laminas/laminas-zendframework-bridge": "^1.4", + "phpstan/phpstan": "^1.10" }, "require-dev": { "phpunit/phpunit": "^9.0", @@ -44,5 +45,10 @@ "psr-4": { "Rareloop\\Lumberjack\\Test\\": "tests" } + }, + "config": { + "allow-plugins": { + "composer/installers": true + } } } diff --git a/tests/Unit/ApplicationTest.php b/tests/ApplicationTest.php similarity index 99% rename from tests/Unit/ApplicationTest.php rename to tests/ApplicationTest.php index a042218..1f1ae64 100644 --- a/tests/Unit/ApplicationTest.php +++ b/tests/ApplicationTest.php @@ -7,7 +7,6 @@ use PHPUnit\Framework\TestCase; use Rareloop\Lumberjack\Application; use Rareloop\Lumberjack\Providers\ServiceProvider; -use Rareloop\Lumberjack\Test\Unit\BrainMonkeyPHPUnitIntegration; use phpmock\Mock; use phpmock\MockBuilder; use Brain\Monkey; diff --git a/tests/Unit/Bootstrappers/BootProvidersTest.php b/tests/Bootstrappers/BootProvidersTest.php similarity index 100% rename from tests/Unit/Bootstrappers/BootProvidersTest.php rename to tests/Bootstrappers/BootProvidersTest.php diff --git a/tests/Unit/Bootstrappers/LoadConfigurationTest.php b/tests/Bootstrappers/LoadConfigurationTest.php similarity index 100% rename from tests/Unit/Bootstrappers/LoadConfigurationTest.php rename to tests/Bootstrappers/LoadConfigurationTest.php diff --git a/tests/Unit/Bootstrappers/RegisterAliasesTest.php b/tests/Bootstrappers/RegisterAliasesTest.php similarity index 100% rename from tests/Unit/Bootstrappers/RegisterAliasesTest.php rename to tests/Bootstrappers/RegisterAliasesTest.php diff --git a/tests/Unit/Bootstrappers/RegisterExceptionHandlerTest.php b/tests/Bootstrappers/RegisterExceptionHandlerTest.php similarity index 98% rename from tests/Unit/Bootstrappers/RegisterExceptionHandlerTest.php rename to tests/Bootstrappers/RegisterExceptionHandlerTest.php index 26396b9..e5387cf 100644 --- a/tests/Unit/Bootstrappers/RegisterExceptionHandlerTest.php +++ b/tests/Bootstrappers/RegisterExceptionHandlerTest.php @@ -12,7 +12,7 @@ use Rareloop\Lumberjack\Config; use Rareloop\Lumberjack\Exceptions\Handler; use Rareloop\Lumberjack\Exceptions\HandlerInterface; -use Rareloop\Lumberjack\Test\Unit\BrainMonkeyPHPUnitIntegration; +use Rareloop\Lumberjack\Test\BrainMonkeyPHPUnitIntegration; use Rareloop\Router\Responsable; use Symfony\Component\Debug\Exception\FatalErrorException; use Zend\Diactoros\Response; diff --git a/tests/Unit/Bootstrappers/RegisterFacadesTest.php b/tests/Bootstrappers/RegisterFacadesTest.php similarity index 100% rename from tests/Unit/Bootstrappers/RegisterFacadesTest.php rename to tests/Bootstrappers/RegisterFacadesTest.php diff --git a/tests/Unit/Bootstrappers/RegisterProvidersTest.php b/tests/Bootstrappers/RegisterProvidersTest.php similarity index 100% rename from tests/Unit/Bootstrappers/RegisterProvidersTest.php rename to tests/Bootstrappers/RegisterProvidersTest.php diff --git a/tests/Unit/Bootstrappers/RegisterRequestHandlerTest.php b/tests/Bootstrappers/RegisterRequestHandlerTest.php similarity index 100% rename from tests/Unit/Bootstrappers/RegisterRequestHandlerTest.php rename to tests/Bootstrappers/RegisterRequestHandlerTest.php diff --git a/tests/Unit/BrainMonkeyPHPUnitIntegration.php b/tests/BrainMonkeyPHPUnitIntegration.php similarity index 88% rename from tests/Unit/BrainMonkeyPHPUnitIntegration.php rename to tests/BrainMonkeyPHPUnitIntegration.php index d008cc2..0dccdfe 100644 --- a/tests/Unit/BrainMonkeyPHPUnitIntegration.php +++ b/tests/BrainMonkeyPHPUnitIntegration.php @@ -1,6 +1,6 @@