@@ -256,8 +256,8 @@ private function getExcludedModulePaths(array $modulePaths)
256
256
}
257
257
258
258
$ excludedModulePaths = [
259
- '#^(?: ' . join ('| ' , $ basePathsRegExps ) . ')/Tests?/ # ' ,
260
- '#^(?: ' . join ('| ' , $ basePathsRegExps ) . ')/tests/ # ' ,
259
+ '#^(?: ' . join ('| ' , $ basePathsRegExps ) . ')/Test # ' ,
260
+ '#^(?: ' . join ('| ' , $ basePathsRegExps ) . ')/tests# ' ,
261
261
];
262
262
return $ excludedModulePaths ;
263
263
}
@@ -278,8 +278,8 @@ function ($libraryPath) {
278
278
);
279
279
280
280
$ excludedLibraryPaths = [
281
- '#^(?: ' . join ('| ' , $ libraryPaths ) . ')/([ \\w]+/)?Tests?/ # ' ,
282
- '#^(?: ' . join ('| ' , $ libraryPaths ) . ')/([ \\w]+/)?tests/ # ' ,
281
+ '#^(?: ' . join ('| ' , $ libraryPaths ) . ')/([ \\w]+/)?Test # ' ,
282
+ '#^(?: ' . join ('| ' , $ libraryPaths ) . ')/([ \\w]+/)?tests# ' ,
283
283
];
284
284
return $ excludedLibraryPaths ;
285
285
}
@@ -293,7 +293,7 @@ function ($libraryPath) {
293
293
private function getExcludedSetupPaths ($ setupPath )
294
294
{
295
295
return [
296
- '#^(?: ' . preg_quote ($ setupPath , '# ' ) . ')(/[ \\w]+)*/Tests?/ # '
296
+ '#^(?: ' . preg_quote ($ setupPath , '# ' ) . ')(/[ \\w]+)*/Test # '
297
297
];
298
298
}
299
299
0 commit comments