add support for loading namespaced test cases
This commit is contained in:
parent
96b798a59f
commit
b206d16b10
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,9 @@ class OC{
|
|||
}
|
||||
elseif(strpos($className, 'Test_')===0) {
|
||||
$path = 'tests/lib/'.strtolower(str_replace('_', '/', substr($className, 5)) . '.php');
|
||||
}
|
||||
elseif(strpos($className, 'Test\\')===0) {
|
||||
$path = 'tests/lib/'.strtolower(str_replace('\\', '/', substr($className, 5)) . '.php');
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue