捕梦者基础框架API接口
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.
 
 

27 lines
688 B

<?php declare(strict_types=1);
/**
* @license Apache 2.0
*/
namespace OpenApi\Tests;
class UtilTest extends OpenApiTestCase
{
public function testExclude()
{
$openapi = \OpenApi\scan(__DIR__.'/Fixtures', [
'exclude' => [
'Customer.php',
'CustomerInterface.php',
'GrandAncestor.php',
'InheritProperties',
'Parser',
'Processors',
'UsingRefs.php',
'UsingPhpDoc.php',
],
]);
$this->assertSame('Fixture for ParserTest', $openapi->info->title, 'No errors about duplicate @OA\Info() annotations');
}
}