Skip to content

Commit 49d5adf

Browse files
committed
add openapi test
1 parent 8b5359c commit 49d5adf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Openapi/OpenApi.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use Astral\Serialize\OpenApi\OpenApi;
34
use Astral\Serialize\Serialize;
45

56
beforeAll(static function () {
@@ -51,7 +52,7 @@ public function one(TestOpenApiRequest $request): TestOpenApiResponse
5152

5253
test('OpenAPI structure is correct', function () {
5354

54-
$api = new \Astral\Serialize\OpenApi\OpenApi();
55+
$api = new OpenApi();
5556
$api->buildByClass(TestOpenApiController::class);
5657

5758
$openApi = $api::$OpenAPI;

0 commit comments

Comments
 (0)