UtilTest.php 472 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * @license Apache 2.0
  4. */
  5. namespace SwaggerTests;
  6. use Swagger\Util;
  7. class UtilTest extends SwaggerTestCase
  8. {
  9. public function testExclude()
  10. {
  11. $swagger = \Swagger\scan(__DIR__ . '/Fixtures', ['exclude' => ['Customer.php', 'UsingRefs.php', 'DynamicReference.php', 'UsingPhpDoc.php', 'GrandAncestor.php']]);
  12. $this->assertSame('Fixture for ParserTest', $swagger->info->title, 'No errors about duplicate @SWG\Info() annotations');
  13. }
  14. }