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

Remove hard-coded dependency on ZF2 vendor/ path

parent 9a08cccf
No related merge requests found
<?php <?php
/** /**
* Proxy service PHPUnit bootstrap. * Proxy servce PHPUnit bootstrap.
* *
* @author David Maus <maus@hab.de> * @author David Maus <maus@hab.de>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @copyright Copyright (C) Villanova University 2011 * @copyright Copyright (C) Villanova University 2011
*
*/ */
$zf2 = realpath(__DIR__ . '/../../vendor/zf2/library/'); require_once('Zend/Loader/AutoloaderFactory.php');
\Zend\Loader\AutoloaderFactory::factory(
if (!class_exists('Zend\Loader\AutoloaderFactory')) { array(
require_once( 'Zend\Loader\StandardAutoloader' => array(
realpath("{$zf2}/Zend/Loader/AutoloaderFactory.php") 'namespaces' => array(
); 'VuFindProxy' => realpath(__DIR__ . '/../../src/VuFindProxy'),
\Zend\Loader\AutoloaderFactory::factory( 'VuFindTest' => realpath(__DIR__ . '/src/VuFindTest'),
array( ),
'Zend\Loader\StandardAutoloader' => array( 'autoregister_zf' => true
'namespaces' => array(
'Zend' => "{$zf2}/Zend"
)
)
) )
); )
} );
$loader = \Zend\Loader\AutoloaderFactory::getRegisteredAutoloader('Zend\Loader\StandardAutoloader');
$loader->registerNamespace('VuFindProxy', realpath(__DIR__ . '/../../src/VuFindProxy'));
$loader->registerNamespace('VuFindTest', realpath(__DIR__ . '/src/VuFindTest'));
\ No newline at end of file
...@@ -8,4 +8,7 @@ ...@@ -8,4 +8,7 @@
<logging> <logging>
<log type="coverage-html" target="../../review/coverage"/> <log type="coverage-html" target="../../review/coverage"/>
</logging> </logging>
<php>
<includePath>../../vendor/zf2/library</includePath>
</php>
</phpunit> </phpunit>
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