-
Notifications
You must be signed in to change notification settings - Fork 0
HUB-441 #9
base: master
Are you sure you want to change the base?
HUB-441 #9
Conversation
|
|
||
| $builder = new OpenApiResolverBuilder( | ||
| new \ArrayObject(), | ||
| new \ArrayObject([new NumberMinimumValidator(), new NumberMaximumValidator()]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вынести \ArrayObject в импорт во все местах
| $this->expectException(RuntimeException::class); | ||
| ParameterCollectionFormatEnum::getDelimiter('_undefined_'); | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пустая строка
| 'class', | ||
| ]); | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пустая строка
| 'string', | ||
| ]); | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пустая строка
Tests/EnumTest/EnumParameterTest.php
Outdated
| $fieldType = 'string'; | ||
|
|
||
| $builder = new OpenApiResolverBuilder( | ||
| new \ArrayObject(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вынести в use
| /** | ||
| * @var ArrayMaxItemsValidator | ||
| */ | ||
| private $sut; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему sut? похож на validator
строгая типизация вместо аннотации
| /** | ||
| * @var ArrayMinItemsValidator | ||
| */ | ||
| private $sut; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Аналогично
| use OpenApi\Annotations\Property; | ||
| use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; | ||
| use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException; | ||
| use function str_repeat; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
пустая строка перед use function
| use OpenApi\Annotations as OA; | ||
|
|
||
| /** | ||
| * @OA\Schema( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А эти моки где нибудь используются? не нашел тест на них
No description provided.