/**
  * Get files for parsing
  *
  * @param array $options
  * @return array
  */
 protected function _getFiles($options)
 {
     $fileMask = isset($options['fileMask']) ? $options['fileMask'] : '';
     return $this->_filesCollector->getFiles($options['paths'], $fileMask);
 }
 public function testGetFilesWithMask()
 {
     $expectedResult = [$this->_testDir . 'file.js'];
     $this->assertEquals($expectedResult, $this->_filesCollector->getFiles([$this->_testDir], '/\\.js$/'));
 }
 /**
  * @return \RegexIterator
  */
 protected function _getFiles()
 {
     $filesCollector = new \Magento\Tools\I18n\FilesCollector();
     return $filesCollector->getFiles([\Magento\Framework\App\Utility\Files::init()->getPathToSource()], '/\\.(php|phtml)$/');
 }