4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Finder\Tests\FakeAdapter;
14 use Symfony\Component\Finder\Adapter\AbstractAdapter;
15 use Symfony\Component\Finder\Exception\AdapterFailureException;
18 * @author Jean-François Simon <contact@jfsimon.fr>
20 class FailingAdapter extends AbstractAdapter
25 public function searchInDirectory($dir)
27 throw new AdapterFailureException($this);
33 public function getName()
41 protected function canBeUsed()