Skip to content
Snippets Groups Projects
Commit 95052567 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Starting VuDL tests.

parent 3bb6ce79
No related merge requests found
...@@ -44,20 +44,20 @@ class Manager ...@@ -44,20 +44,20 @@ class Manager
* Array of classes to try in order * Array of classes to try in order
*/ */
protected $priority; protected $priority;
/** /**
* Cache of class objects * Cache of class objects
*/ */
protected $connections; protected $connections;
/** /**
* Used to load class objects * Used to load class objects
*/ */
protected $serviceLocator; protected $serviceLocator;
/** /**
* Constructor * Constructor
* *
* @param array $priority Order we want to try connectors in * @param array $priority Order we want to try connectors in
* @param ServiceLocator $sm Object to load everything from * @param ServiceLocator $sm Object to load everything from
*/ */
...@@ -67,12 +67,12 @@ class Manager ...@@ -67,12 +67,12 @@ class Manager
$this->connections = array(); $this->connections = array();
$this->serviceLocator = $sm; $this->serviceLocator = $sm;
} }
/** /**
* Get a class object from a classname, save in cache * Get a class object from a classname, save in cache
* *
* @param string $className Class we want to load * @param string $className Class we want to load
* *
* @return object * @return object
*/ */
protected function get($className) protected function get($className)
...@@ -83,7 +83,7 @@ class Manager ...@@ -83,7 +83,7 @@ class Manager
} }
return $this->connections[$className]; return $this->connections[$className];
} }
/** /**
* Try to call a function in each successive class * Try to call a function in each successive class
* according to priority * according to priority
......
...@@ -37,6 +37,7 @@ if (file_exists('vendor/autoload.php')) { ...@@ -37,6 +37,7 @@ if (file_exists('vendor/autoload.php')) {
$loader->add('VuFindTest', __DIR__ . '/unit-tests/src'); $loader->add('VuFindTest', __DIR__ . '/unit-tests/src');
$loader->add('VuFindTest', __DIR__ . '/../src'); $loader->add('VuFindTest', __DIR__ . '/../src');
$loader->add('VuFind', __DIR__ . '/../src'); $loader->add('VuFind', __DIR__ . '/../src');
$loader->add('VuDL', __DIR__ . '/../../VuDL/src');
$loader->add('VuFindConsole', __DIR__ . '/../../VuFindConsole/src'); $loader->add('VuFindConsole', __DIR__ . '/../../VuFindConsole/src');
$loader->add('VuFindDevTools', __DIR__ . '/../../VuFindDevTools/src'); $loader->add('VuFindDevTools', __DIR__ . '/../../VuFindDevTools/src');
$loader->add('VuFindHttp', __DIR__ . '/../../VuFindHttp/src'); $loader->add('VuFindHttp', __DIR__ . '/../../VuFindHttp/src');
......
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