From a81b4a86b9109e6472909fccc7369c9265b33ded Mon Sep 17 00:00:00 2001 From: shalvah Date: Fri, 8 May 2020 12:34:47 +0100 Subject: [PATCH] Refactor tests --- .gitignore | 2 +- phpunit.xml | 16 ++++++++-------- .../BodyParameters/GetFromBodyParamTagTest.php | 2 +- .../BodyParameters/GetFromFormRequestTest.php | 2 +- .../Strategies/Metadata/GetFromDocBlocksTest.php | 2 +- .../QueryParameters/GetFromQueryParamTagTest.php | 2 +- .../GetFromResponseFieldTagTest.php | 2 +- .../Strategies/Responses/ResponseCallsTest.php | 4 +--- .../Responses/UseApiResourceTagsTest.php | 4 +--- .../Responses/UseResponseFileTagTest.php | 8 ++++---- .../Strategies/Responses/UseResponseTagTest.php | 2 +- .../Responses/UseTransformerTagsTest.php | 3 +-- .../UrlParameters/GetFromUrlParamTagTest.php | 2 +- tests/{Tools => Unit}/AnnotationParserTest.php | 3 ++- tests/Unit/GeneratorPluginSystemTestCase.php | 5 ++--- 15 files changed, 27 insertions(+), 32 deletions(-) rename tests/{Extracting => }/Strategies/BodyParameters/GetFromBodyParamTagTest.php (99%) rename tests/{Extracting => }/Strategies/BodyParameters/GetFromFormRequestTest.php (99%) rename tests/{Extracting => }/Strategies/Metadata/GetFromDocBlocksTest.php (97%) rename tests/{Extracting => }/Strategies/QueryParameters/GetFromQueryParamTagTest.php (97%) rename tests/{Extracting => }/Strategies/ResponseFields/GetFromResponseFieldTagTest.php (97%) rename tests/{Extracting => }/Strategies/Responses/ResponseCallsTest.php (98%) rename tests/{Extracting => }/Strategies/Responses/UseApiResourceTagsTest.php (98%) rename tests/{Extracting => }/Strategies/Responses/UseResponseFileTagTest.php (92%) rename tests/{Extracting => }/Strategies/Responses/UseResponseTagTest.php (97%) rename tests/{Extracting => }/Strategies/Responses/UseTransformerTagsTest.php (98%) rename tests/{Extracting => }/Strategies/UrlParameters/GetFromUrlParamTagTest.php (93%) rename tests/{Tools => Unit}/AnnotationParserTest.php (95%) diff --git a/.gitignore b/.gitignore index 8d59e189..b13a58da 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ .DS_Store composer.lock -*.composer.lock +composer.dingo.lock .php_cs.cache /vendor/ public/ diff --git a/phpunit.xml b/phpunit.xml index e2c4899d..f589b88d 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -10,24 +10,24 @@ processIsolation="false" stopOnFailure="false"> + + tests/GenerateDocumentationTest.php + tests/Unit/DingoGeneratorTest.php tests/Unit/LaravelGeneratorTest.php tests/Unit/GeneratorPluginSystemTest.php + + tests/Strategies + tests/Unit/RouteMatcherDingoTest.php tests/Unit/RouteMatcherTest.php - - tests/GenerateDocumentationTest.php - - + tests/Unit/PostmanCollectionWriterTest.php - tests/Tools/AnnotationParserTest.php - - - tests/Extracting/Strategies + tests/Unit/AnnotationParserTest.php diff --git a/tests/Extracting/Strategies/BodyParameters/GetFromBodyParamTagTest.php b/tests/Strategies/BodyParameters/GetFromBodyParamTagTest.php similarity index 99% rename from tests/Extracting/Strategies/BodyParameters/GetFromBodyParamTagTest.php rename to tests/Strategies/BodyParameters/GetFromBodyParamTagTest.php index b87c30be..59bc15b2 100644 --- a/tests/Extracting/Strategies/BodyParameters/GetFromBodyParamTagTest.php +++ b/tests/Strategies/BodyParameters/GetFromBodyParamTagTest.php @@ -1,6 +1,6 @@