add support for loading namespaced test cases

This commit is contained in:
Robin Appelman 2012-09-22 14:51:34 +02:00
parent 96b798a59f
commit b206d16b10

View file

@ -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;
}