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