diff --git a/src/Twigc/PharCompiler.php b/src/Twigc/PharCompiler.php index 5bb450a..681fbc7 100644 --- a/src/Twigc/PharCompiler.php +++ b/src/Twigc/PharCompiler.php @@ -370,8 +370,7 @@ class PharCompiler { ->exclude('docs') ->exclude('test') ->exclude('tests') - ->exclude('Test') - ->exclude('Tests') + ->notPath('/^[^\/]+\/[^\/]+\/Tests?\//') ->notName('*.c') ->notName('*.h') ->notName('*.m4')