tools/scripts/phpunit - Accept EnvTest
authorTim Otten <totten@civicrm.org>
Fri, 29 Jan 2016 05:06:57 +0000 (21:06 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 2 Feb 2016 04:56:23 +0000 (21:56 -0700)
tools/scripts/phpunit

index 6e16d0a2053c6680cd755023d96f604578801e5b..30a3831c8a424537df7937eaf19e64e4d55775e2 100755 (executable)
@@ -30,7 +30,7 @@ array_shift($argv);
 
 // Convert class names to file names
 foreach ($argv as $k => $v) {
-  if (preg_match('/^(CRM_|api_v3|WebTest_)/', $v)) {
+  if (preg_match('/^(CRM_|api_v3_|EnvTest|WebTest_)/', $v)) {
     $argv[$k] = 'tests/phpunit/' . strtr($v, '_', '/') . '.php';
   }
   elseif (preg_match('/^Civi\\\\/', $v)) {