function _simpletest_xautoload in X Autoload 7.2
Implements hook_xautoload() on behalf of simpletest
1 call to _simpletest_xautoload()
- xautoload_boot in ./
xautoload.module - Implements hook_boot()
File
- ./
xautoload.module, line 33
Code
function _simpletest_xautoload($api) {
if (version_compare(PHP_VERSION, '5.3') < 0) {
// Namespaces only exist since PHP 5.3.
return;
}
// Register a plugin that can find classes within disabled modules.
// The plugin will only load classes of the format "Drupal\(module)\Tests\.."
$api
->namespacePlugin('Drupal', new xautoload_Plugin_DrupalSimpletest());
}