You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
602 B
19 lines
602 B
<?php declare(strict_types=1);
|
|
|
|
/**
|
|
* @license Apache 2.0
|
|
*/
|
|
|
|
namespace OpenApi\Tests\Processors;
|
|
|
|
use OpenApi\Tests\OpenApiTestCase;
|
|
|
|
class AugmentParameterTest extends OpenApiTestCase
|
|
{
|
|
public function testAugmentParameter()
|
|
{
|
|
$openapi = \OpenApi\scan($this->fixtures('UsingRefs.php'));
|
|
$this->assertCount(1, $openapi->components->parameters, 'OpenApi contains 1 reusable parameter specification');
|
|
$this->assertEquals('ItemName', $openapi->components->parameters[0]->parameter, 'When no @OA\Parameter()->parameter is specified, use @OA\Parameter()->name');
|
|
}
|
|
}
|
|
|