find() public method

Find a file in the connected paths, and check for its existance.
public find ( string $file ) : mixed
$file string The file you want to find.
return mixed Either false on a miss, or the full path of the file.
 public function testExpandGlob()
 {
     $paths = array($this->_testFiles . 'js' . DS, $this->_testFiles . 'js' . DS . '*');
     $scanner = new AssetScanner($paths);
     $result = $scanner->find('base_class.js');
     $expected = $this->_testFiles . 'js' . DS . 'classes' . DS . 'base_class.js';
     $this->assertEquals($expected, $result);
     $result = $scanner->find('classes' . DS . 'base_class.js');
     $expected = $this->_testFiles . 'js' . DS . 'classes' . DS . 'base_class.js';
     $this->assertEquals($expected, $result);
 }