Skip to content

Commit 45d33e0

Browse files
authored
Merge pull request #55 from PHPCSStandards/feature/test-file-sorting
Standards/AbstractSniffUnitTest: order test files using natural sort
2 parents 11d5c66 + d675c75 commit 45d33e0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ The file documents changes to the PHP_CodeSniffer project.
8585
- Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
8686
- The -e (explain) command will now list sniffs in natural order
8787
- Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
88+
- Tests using the PHPCS native test framework with multiple test case files will now run the test case files in numeric order.
89+
- Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
8890

8991
### Removed
9092
- Removed support for installing via PEAR

tests/Standards/AbstractSniffUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function getTestFiles($testFileBase)
9090
}
9191

9292
// Put them in order.
93-
sort($testFiles);
93+
sort($testFiles, SORT_NATURAL);
9494

9595
return $testFiles;
9696

0 commit comments

Comments
 (0)