Drupal investigation

GnuFinderTest.php 759B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Finder\Tests;
  11. use Symfony\Component\Finder\Adapter\GnuFindAdapter;
  12. use Symfony\Component\Finder\Finder;
  13. /**
  14. * @group legacy
  15. */
  16. class GnuFinderTest extends FinderTest
  17. {
  18. protected function buildFinder()
  19. {
  20. $adapter = new GnuFindAdapter();
  21. if (!$adapter->isSupported()) {
  22. $this->markTestSkipped(get_class($adapter).' is not supported.');
  23. }
  24. return Finder::create()
  25. ->removeAdapters()
  26. ->addAdapter($adapter);
  27. }
  28. }