// Convert class names to file names
foreach ($argv as $k => $v) {
- if (preg_match('/^(CRM_|api_v3|_Civi_|WebTest_)/', $v)) {
+ if (preg_match('/^(CRM_|api_v3|WebTest_)/', $v)) {
$argv[$k] = 'tests/phpunit/' . strtr($v, '_', '/') . '.php';
}
+ elseif (preg_match('/^Civi\\\\/', $v)) {
+ $argv[$k] = 'tests/phpunit/' . strtr($v, '\\', '/') . '.php';
+ }
}
// Transition: Make sure we use phpunit code from PATH, not