GnuFinderTest.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. public function testSymlinksNotResolved()
  19. {
  20. $this->markTestSkipped('Symlinks are always resolved using the GnuFinderAdapter.');
  21. }
  22. public function testBackPathNotNormalized()
  23. {
  24. $this->markTestSkipped('Paths are always normalized using the GnuFinderAdapter.');
  25. }
  26. protected function buildFinder()
  27. {
  28. $adapter = new GnuFindAdapter();
  29. if (!$adapter->isSupported()) {
  30. $this->markTestSkipped(\get_class($adapter).' is not supported.');
  31. }
  32. return Finder::create()
  33. ->removeAdapters()
  34. ->addAdapter($adapter);
  35. }
  36. }