Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request zendframework#4744 from bakura10/remove-zend-test
Browse files Browse the repository at this point in the history
Remove ZendTest from Composer
  • Loading branch information
weierophinney committed Jun 28, 2013
2 parents dfc8b33 + 3bf60a3 commit 01d94f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
},
"autoload": {
"psr-0": {
"Zend\\": "library/",
"ZendTest\\": "tests/"
"Zend\\": "library/"
}
},
"bin": [
Expand Down
24 changes: 10 additions & 14 deletions tests/_autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
* Setup autoloading
*/

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',
'ZendTest' => __DIR__ . '/ZendTest',
),
));
$loader->register();
}
include_once __DIR__ . '/../vendor/autoload.php';

$loader = new Zend\Loader\StandardAutoloader(
array(
Zend\Loader\StandardAutoloader::LOAD_NS => array(
'ZendTest' => __DIR__ . '/ZendTest',
),
)
);
$loader->register();

0 comments on commit 01d94f1

Please sign in to comment.