protected function getAdapter()
 {
     $adapter = new GnuFindAdapter();
     if (!$adapter->isSupported()) {
         $this->markTestSkipped(get_class($adapter) . ' is not supported.');
     }
     return $adapter;
 }
Exemple #2
0
 protected function buildFinder()
 {
     $adapter = new GnuFindAdapter();
     if (!$adapter->isSupported()) {
         $this->markTestSkipped(get_class($adapter) . ' is not supported.');
     }
     return Finder::create()->removeAdapters()->addAdapter($adapter);
 }