From 36d2d6d99dd562e977dfba27652f951aae28838f Mon Sep 17 00:00:00 2001 From: dana Date: Sun, 24 Jul 2016 16:22:31 -0500 Subject: [PATCH] Fix over-zealous test excludes in PharCompiler --- src/Twigc/PharCompiler.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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')