Skip to content

Commit

Permalink
remove zendtest
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Jun 28, 2013
1 parent fc69a35 commit 7c077f5
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions tests/_autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
* Setup autoloading
*/

require_once __DIR__ . '/../library/Zend/Loader/StandardAutoloader.php';
$loader = new Zend\Loader\StandardAutoloader(
array(
Zend\Loader\StandardAutoloader::LOAD_NS => array(
'Zend' => __DIR__ . '/../library/Zend',
'ZendTest' => __DIR__ . '/ZendTest',
),
));
$loader->register();
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
include_once __DIR__ . '/../vendor/autoload.php';
} else {
// if composer autoloader is missing, explicitly add the ZF library path
require_once __DIR__ . '/../library/Zend/Loader/StandardAutoloader.php';
$loader = new Zend\Loader\StandardAutoloader(
array(
Zend\Loader\StandardAutoloader::LOAD_NS => array(
'Zend' => __DIR__ . '/../library/Zend'
),
));
$loader->register();
}

0 comments on commit 7c077f5

Please sign in to comment.