File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ jobs:
104
104
run : |
105
105
# Test method names should not have a return type
106
106
rm -rf b && cp -a a b && cd b
107
- find -wholename '**/Tests/**.php' \
107
+ find -wholename '**/Tests/**.php' -or -wholename '**/tests/**.php' \
108
108
| while read -r FILE; do
109
109
sed -i -E 's/^( public function test.*): void$/\1/' "$FILE"
110
110
done
@@ -218,7 +218,7 @@ jobs:
218
218
219
219
// ensure there is a dot at the end of the exception message
220
220
// except for files under Tests/
221
- if (false === strpos ($argv[1], '/Tests/')) {
221
+ if (false === stripos ($argv[1], '/Tests/')) {
222
222
$new = preg_replace_callback('{throw new ([^\(]+)\((sprintf\()?(\'|")(.+?)(?<!\\\)(\3)}', function ($match) {
223
223
if ('UnexpectedTypeException' === $match[1]) {
224
224
return $match[0];
You can’t perform that action at this time.
0 commit comments