From e2663e9391c9f5e7470b277a56f563d7daadf8aa Mon Sep 17 00:00:00 2001 From: David Maus <maus@hab.de> Date: Mon, 24 Sep 2012 15:30:42 +0200 Subject: [PATCH] Setup autoloader for top-level namespace VuFindTest below src/ --- module/VuFind/tests/unit-tests/bootstrap.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/VuFind/tests/unit-tests/bootstrap.php b/module/VuFind/tests/unit-tests/bootstrap.php index d28c04a2124..16c03f2355a 100644 --- a/module/VuFind/tests/unit-tests/bootstrap.php +++ b/module/VuFind/tests/unit-tests/bootstrap.php @@ -47,5 +47,11 @@ $serviceManager = new ServiceManager(new ServiceManagerConfig($configuration['se $serviceManager->setService('ApplicationConfig', $configuration); $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. ob_start(); \ No newline at end of file -- GitLab