Skip to content

Commit

Permalink
Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
msalakhov committed Dec 5, 2023
1 parent f37df7e commit 1508ec8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/unit/Specification/SpecificationParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,12 @@ public function testParseOpenApiSuccess(): void
public function testParseOpenApiWithCustomDateTimeClassSuccess(): void
{
$specificationName = 'SomeCustomSpecification';
$someDateTimeClass = $this->createMock(DateTimeImmutable::class);
$specificationConfig = new SpecificationConfig(
'/some/custom/specification/path',
null,
'\\Some\\Custom\\Namespace',
'application/json',
$someDateTimeClass::class
DateTimeImmutable::class
);
$parsedSpecification = new OpenApi([
'paths' => new Paths([
Expand Down Expand Up @@ -362,7 +361,7 @@ public function testParseOpenApiWithCustomDateTimeClassSuccess(): void
Assert::assertNotNull($requestBody);

$requestBodyProperties = $requestBody->getProperties();
Assert::assertSame($someDateTimeClass::class, $requestBodyProperties[0]->getOutputType());
Assert::assertSame(DateTimeImmutable::class, $requestBodyProperties[0]->getOutputType());
}

public function testParseOpenApiSuccessRequestBadMediaType(): void
Expand Down Expand Up @@ -1146,5 +1145,4 @@ public function testParseOpenApiWithCustomDateTimeClassThrowExceptionTypeNotSupp
$parsedSpecification
);
}

}

0 comments on commit 1508ec8

Please sign in to comment.