public function testFindHandler() { $f = new Finder(); $f->addPath(__DIR__ . '/../resources/one'); $f->returnHandlers(); $this->assertInstanceOf('Fuel\\FileSystem\\File', $f->findFile('a')); $f = new Finder(); $f->addPath(__DIR__ . '/../resources/one'); $f->addPath(__DIR__ . '/../resources'); $f->asHandlers(); $this->assertInstanceOf('Fuel\\FileSystem\\File', $f->findFile('a')); $f->asHandlers(); $this->assertInstanceOf('Fuel\\FileSystem\\Directory', $f->findDir('one')); $f->returnHandlers(); $this->assertContainsOnlyInstancesOf('Fuel\\FileSystem\\File', $f->findAllFiles('a')); $this->assertContainsOnlyInstancesOf('Fuel\\FileSystem\\Directory', $f->findAllDirs('one')); }