Skip to content

Commit

Permalink
Merge pull request #55 from PHPCSStandards/feature/test-file-sorting
Browse files Browse the repository at this point in the history
Standards/AbstractSniffUnitTest: order test files using natural sort
  • Loading branch information
jrfnl authored Dec 4, 2023
2 parents 11d5c66 + d675c75 commit 45d33e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ The file documents changes to the PHP_CodeSniffer project.
- Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
- The -e (explain) command will now list sniffs in natural order
- Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
- Tests using the PHPCS native test framework with multiple test case files will now run the test case files in numeric order.
- Thanks to Juliette Reinders Folmer (@jrfnl) for the patch

### Removed
- Removed support for installing via PEAR
Expand Down
2 changes: 1 addition & 1 deletion tests/Standards/AbstractSniffUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function getTestFiles($testFileBase)
}

// Put them in order.
sort($testFiles);
sort($testFiles, SORT_NATURAL);

return $testFiles;

Expand Down

0 comments on commit 45d33e0

Please sign in to comment.