From 68dadeef902095d28c4801b84f2826a75e739ffb Mon Sep 17 00:00:00 2001 From: Serhii Donii Date: Wed, 13 Apr 2022 15:35:32 +0300 Subject: [PATCH] remove double slashes --- .../OpenApiRouteLoaderAnnotationsTest.php | 20 +++++++++---------- .../OpenApiRouteLoaderAttributesTest.php | 20 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/tests/Annotations/OpenApiRouteLoaderAnnotationsTest.php b/tests/Annotations/OpenApiRouteLoaderAnnotationsTest.php index a921afe..d0ca392 100644 --- a/tests/Annotations/OpenApiRouteLoaderAnnotationsTest.php +++ b/tests/Annotations/OpenApiRouteLoaderAnnotationsTest.php @@ -26,7 +26,7 @@ class OpenApiRouteLoaderAnnotationsTest extends TestCase public function testBasic(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//Basic'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/Basic'); $routes = $routeLoader->__invoke(); @@ -42,7 +42,7 @@ public function testBasic(): void public function testFormatSuffix(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//FormatSuffix'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/FormatSuffix'); $routes = $routeLoader->__invoke(); @@ -68,7 +68,7 @@ public function testFormatSuffix(): void public function testOperationId(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//OperationId'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/OperationId'); $routes = $routeLoader->__invoke(); @@ -83,7 +83,7 @@ public function testOperationId(): void public function testPathParameterPattern(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//PathParameterPattern'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/PathParameterPattern'); $routes = $routeLoader->__invoke(); @@ -107,7 +107,7 @@ public function testPathParameterPattern(): void public function testPriority(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//Priority'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/Priority'); $routes = $routeLoader->__invoke(); @@ -130,7 +130,7 @@ public function testPriority(): void public function testSeveralClasses(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//SeveralClasses'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/SeveralClasses'); $routes = $routeLoader->__invoke(); @@ -153,7 +153,7 @@ public function testSeveralClasses(): void public function testSeveralHttpMethods(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//SeveralHttpMethods'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/SeveralHttpMethods'); $routes = $routeLoader->__invoke(); @@ -179,7 +179,7 @@ public function testSeveralHttpMethods(): void public function testSeveralRoutesOnOneAction(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//SeveralRoutesOnOneAction'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/SeveralRoutesOnOneAction'); $routes = $routeLoader->__invoke(); @@ -203,8 +203,8 @@ public function testSeveralRoutesOnOneAction(): void public function testSeveralDirectories(): void { $routeLoader = OpenApiRouteLoader::fromDirectories( - __DIR__.'/Fixtures//Basic', - __DIR__.'/Fixtures//SeveralClasses/SubNamespace' + __DIR__.'/Fixtures/Basic', + __DIR__.'/Fixtures/SeveralClasses/SubNamespace' ); $routes = $routeLoader->__invoke(); diff --git a/tests/Attributes/OpenApiRouteLoaderAttributesTest.php b/tests/Attributes/OpenApiRouteLoaderAttributesTest.php index 03e7305..9e55d1e 100644 --- a/tests/Attributes/OpenApiRouteLoaderAttributesTest.php +++ b/tests/Attributes/OpenApiRouteLoaderAttributesTest.php @@ -24,7 +24,7 @@ class OpenApiRouteLoaderAttributesTest extends TestCase { public function testBasic(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//Basic'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/Basic'); $routes = $routeLoader->__invoke(); @@ -40,7 +40,7 @@ public function testBasic(): void public function testFormatSuffix(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//FormatSuffix'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/FormatSuffix'); $routes = $routeLoader->__invoke(); @@ -66,7 +66,7 @@ public function testFormatSuffix(): void public function testOperationId(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//OperationId'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/OperationId'); $routes = $routeLoader->__invoke(); @@ -81,7 +81,7 @@ public function testOperationId(): void public function testPathParameterPattern(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//PathParameterPattern'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/PathParameterPattern'); $routes = $routeLoader->__invoke(); @@ -105,7 +105,7 @@ public function testPathParameterPattern(): void public function testPriority(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//Priority'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/Priority'); $routes = $routeLoader->__invoke(); @@ -128,7 +128,7 @@ public function testPriority(): void public function testSeveralClasses(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//SeveralClasses'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/SeveralClasses'); $routes = $routeLoader->__invoke(); @@ -151,7 +151,7 @@ public function testSeveralClasses(): void public function testSeveralHttpMethods(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//SeveralHttpMethods'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/SeveralHttpMethods'); $routes = $routeLoader->__invoke(); @@ -177,7 +177,7 @@ public function testSeveralHttpMethods(): void public function testSeveralRoutesOnOneAction(): void { - $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures//SeveralRoutesOnOneAction'); + $routeLoader = OpenApiRouteLoader::fromDirectories(__DIR__.'/Fixtures/SeveralRoutesOnOneAction'); $routes = $routeLoader->__invoke(); @@ -201,8 +201,8 @@ public function testSeveralRoutesOnOneAction(): void public function testSeveralDirectories(): void { $routeLoader = OpenApiRouteLoader::fromDirectories( - __DIR__.'/Fixtures//Basic', - __DIR__.'/Fixtures//SeveralClasses/SubNamespace' + __DIR__.'/Fixtures/Basic', + __DIR__.'/Fixtures/SeveralClasses/SubNamespace' ); $routes = $routeLoader->__invoke();