Exemplo n.º 1
0
 protected function getAdapter()
 {
     $adapter = new GnuFindAdapter();
     if (!$adapter->isSupported()) {
         $this->markTestSkipped(get_class($adapter) . ' is not supported.');
     }
     return $adapter;
 }
Exemplo n.º 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);
 }