Skip to content

Commit 3f627bb

Browse files
Look for tests case-insensitive
1 parent ee1b38b commit 3f627bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/fabbot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
run: |
105105
# Test method names should not have a return type
106106
rm -rf b && cp -a a b && cd b
107-
find -wholename '**/Tests/**.php' \
107+
find -wholename '**/Tests/**.php' -or -wholename '**/tests/**.php' \
108108
| while read -r FILE; do
109109
sed -i -E 's/^( public function test.*): void$/\1/' "$FILE"
110110
done
@@ -218,7 +218,7 @@ jobs:
218218
219219
// ensure there is a dot at the end of the exception message
220220
// except for files under Tests/
221-
if (false === strpos($argv[1], '/Tests/')) {
221+
if (false === stripos($argv[1], '/Tests/')) {
222222
$new = preg_replace_callback('{throw new ([^\(]+)\((sprintf\()?(\'|")(.+?)(?<!\\\)(\3)}', function ($match) {
223223
if ('UnexpectedTypeException' === $match[1]) {
224224
return $match[0];

0 commit comments

Comments
 (0)