4
0

UtilTest.php 476 B

12345678910111213141516
  1. <?php declare(strict_types=1);
  2. /**
  3. * @license Apache 2.0
  4. */
  5. namespace OpenApiTests;
  6. class UtilTest extends OpenApiTestCase
  7. {
  8. public function testExclude()
  9. {
  10. $openapi = \OpenApi\scan(__DIR__.'/Fixtures', ['exclude' => ['Customer.php', 'CustomerInterface.php', 'UsingRefs.php', 'UsingPhpDoc.php', 'GrandAncestor.php']]);
  11. $this->assertSame('Fixture for ParserTest', $openapi->info->title, 'No errors about duplicate @OA\Info() annotations');
  12. }
  13. }