InternalIntegrationCaseFactory.php 853 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of PHP CS Fixer.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. * Dariusz Rumiński <dariusz.ruminski@gmail.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. namespace PhpCsFixer\Tests\Test;
  12. use Symfony\Component\Finder\SplFileInfo;
  13. /**
  14. * @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
  15. *
  16. * @internal
  17. */
  18. final class InternalIntegrationCaseFactory extends AbstractIntegrationCaseFactory
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. protected function determineSettings(SplFileInfo $file, $config)
  24. {
  25. $parsed = parent::determineSettings($file, $config);
  26. $parsed['isExplicitPriorityCheck'] = in_array('priority', explode(DIRECTORY_SEPARATOR, $file->getRelativePathname()), true);
  27. return $parsed;
  28. }
  29. }