From: Tim Otten Date: Thu, 14 Aug 2014 23:33:12 +0000 (-0700) Subject: INFRA-125, CRM-15011 - Fix autoloading for api_v3_*Test and WebTest_*Test X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8581f9ae6fd725fd03750c1e507021f1eb6fc174;p=civicrm-core.git INFRA-125, CRM-15011 - Fix autoloading for api_v3_*Test and WebTest_*Test --- diff --git a/CRM/Core/ClassLoader.php b/CRM/Core/ClassLoader.php index 21402e46d9..46ed87ae1e 100644 --- a/CRM/Core/ClassLoader.php +++ b/CRM/Core/ClassLoader.php @@ -152,7 +152,8 @@ class CRM_Core_ClassLoader { function loadClass($class) { if ( // Only load classes that clearly belong to CiviCRM. - 0 === strncmp($class, 'CRM_', 4) && + // Note: api/v3 does not use classes, but api_v3's test-suite does + (0 === strncmp($class, 'CRM_', 4) || 0 === strncmp($class, 'api_v3_', 7) || 0 === strncmp($class, 'WebTest_', 8)) && // Do not load PHP 5.3 namespaced classes. // (in a future version, maybe) FALSE === strpos($class, '\\')