diff --git a/composer.json b/composer.json index 007a9ff..109bde9 100644 --- a/composer.json +++ b/composer.json @@ -58,6 +58,6 @@ "minimum-stability": "dev", "prefer-stable": true, "scripts": { - "phpunit": "vendor/bin/phpunit" + "phpunit": "vendor/bin/phpunit --testdox" } } diff --git a/phpunit.xml b/phpunit.xml index 49b9338..1233bbf 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,5 +1,13 @@ - + src/ diff --git a/src/L5SwaggerFacade.php b/src/L5SwaggerFacade.php index c601e89..533c774 100644 --- a/src/L5SwaggerFacade.php +++ b/src/L5SwaggerFacade.php @@ -7,6 +7,8 @@ class L5SwaggerFacade extends Facade { /** + * @codeCoverageIgnore + * * @return string */ protected static function getFacadeAccessor(): string diff --git a/src/L5SwaggerServiceProvider.php b/src/L5SwaggerServiceProvider.php index 852fde0..82fb70d 100644 --- a/src/L5SwaggerServiceProvider.php +++ b/src/L5SwaggerServiceProvider.php @@ -61,6 +61,8 @@ public function register() /** * Get the services provided by the provider. * + * @codeCoverageIgnore + * * @return array */ public function provides() diff --git a/tests/ConfigFactoryTest.php b/tests/ConfigFactoryTest.php index e6488c2..57fd35e 100644 --- a/tests/ConfigFactoryTest.php +++ b/tests/ConfigFactoryTest.php @@ -4,12 +4,15 @@ use L5Swagger\Exceptions\L5SwaggerException; +/** + * @testdox Configuration factory + */ class ConfigFactoryTest extends TestCase { /** * @test */ - public function ifThrowsExceptionIfDocumentationConfigNotFound(): void + public function itThrowsExceptionIfDocumentationConfigNotFound(): void { $config = config('l5-swagger'); unset($config['documentations']['default']); diff --git a/tests/ConsoleTest.php b/tests/ConsoleTest.php index bc524d0..4e62ff0 100644 --- a/tests/ConsoleTest.php +++ b/tests/ConsoleTest.php @@ -6,6 +6,9 @@ use Illuminate\Support\Facades\Artisan; use L5Swagger\Exceptions\L5SwaggerException; +/** + * @testdox Console commands + */ class ConsoleTest extends TestCase { /** diff --git a/tests/GeneratorTest.php b/tests/GeneratorTest.php index 728c75b..3b4bcce 100644 --- a/tests/GeneratorTest.php +++ b/tests/GeneratorTest.php @@ -9,6 +9,9 @@ use Symfony\Component\Yaml\Parser; use Symfony\Component\Yaml\Yaml; +/** + * @testdox Generator + */ class GeneratorTest extends TestCase { /** @test **/ diff --git a/tests/HelpersTest.php b/tests/HelpersTest.php index eee749d..a410040 100644 --- a/tests/HelpersTest.php +++ b/tests/HelpersTest.php @@ -4,6 +4,9 @@ use L5Swagger\Exceptions\L5SwaggerException; +/** + * @testdox Helpers + */ class HelpersTest extends TestCase { /** @test */ diff --git a/tests/RoutesTest.php b/tests/RoutesTest.php index 92b00b2..3ab3b10 100644 --- a/tests/RoutesTest.php +++ b/tests/RoutesTest.php @@ -7,6 +7,9 @@ use L5Swagger\GeneratorFactory; use PHPUnit\Framework\MockObject\MockObject; +/** + * @testdox Routes + */ class RoutesTest extends TestCase { /** @test */ diff --git a/tests/SecurityDefinitionsTest.php b/tests/SecurityDefinitionsTest.php index 094e0cf..94e3ccf 100644 --- a/tests/SecurityDefinitionsTest.php +++ b/tests/SecurityDefinitionsTest.php @@ -5,6 +5,9 @@ use Illuminate\Filesystem\Filesystem; use L5Swagger\Exceptions\L5SwaggerException; +/** + * @testdox Security definition + */ class SecurityDefinitionsTest extends TestCase { /**