Skip to content
Snippets Groups Projects
Commit e2663e93 authored by David Maus's avatar David Maus
Browse files

Setup autoloader for top-level namespace VuFindTest below src/

parent 73359771
Branches
Tags instance/fid_bbi/staging/20201203
No related merge requests found
...@@ -47,5 +47,11 @@ $serviceManager = new ServiceManager(new ServiceManagerConfig($configuration['se ...@@ -47,5 +47,11 @@ $serviceManager = new ServiceManager(new ServiceManagerConfig($configuration['se
$serviceManager->setService('ApplicationConfig', $configuration); $serviceManager->setService('ApplicationConfig', $configuration);
$serviceManager->get('ModuleManager')->loadModules(); $serviceManager->get('ModuleManager')->loadModules();
// Setup autoloader for VuFindTest classes
$loader = Zend\Loader\AutoloaderFactory::getRegisteredAutoloader(
Zend\Loader\AutoloaderFactory::STANDARD_AUTOLOADER
);
$loader->registerNamespace('VuFindTest', __DIR__ . '/../../src/VuFindTest');
// Use output buffering -- some tests involve HTTP headers and will fail if there is output. // Use output buffering -- some tests involve HTTP headers and will fail if there is output.
ob_start(); ob_start();
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment