projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f55ba2
)
CRM-17860 - tools/scripts/phpunit - Fix for 'Civi\Foo\Bar'
author
Tim Otten
<totten@civicrm.org>
Fri, 22 Jan 2016 09:48:17 +0000
(
01:48
-0800)
committer
Tim Otten
<totten@civicrm.org>
Tue, 26 Jan 2016 00:45:29 +0000
(16:45 -0800)
tools/scripts/phpunit
patch
|
blob
|
blame
|
history
diff --git
a/tools/scripts/phpunit
b/tools/scripts/phpunit
index d41a2f0c367b12531b30ed876c62e8255b19c82e..72e46ef00c0c4f211260b5fba69d543209664797 100755
(executable)
--- a/
tools/scripts/phpunit
+++ b/
tools/scripts/phpunit
@@
-30,9
+30,12
@@
array_shift($argv);
// 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