filterFilesList() public method

Filter the list of files to update.
public filterFilesList ( array $filesList, array $excludesList ) : array
$filesList array
$excludesList array
return array
Example #1
0
 public function testFilterFilesList()
 {
     $fileList = ['src/Tester/QuestionToken.php', 'src/Util/ArrayUtil.php', 'src/bootstrap.php', 'bootstrap.inc', 'assets/file.js', 'tests/ApplicationTest.php', 'tests/Command/BaseTestCase.php', 'tests/Command/Branch/BranchChangelogCommandTest.php', 'tests/Command/Branch/BranchDeleteCommandTest.php'];
     $expectedFileList = ['src/Tester/QuestionToken.php', 'src/Util/ArrayUtil.php'];
     $this->assertEquals($expectedFileList, $this->helper->filterFilesList($fileList, ['{^tests/.+}', 'src/bootstrap.php', 'bootstrap.inc', '*.js']));
 }