Remove ZendTest from Composer #4744

Closed
wants to merge 4 commits into
from
View
@@ -28,8 +28,7 @@
},
"autoload": {
"psr-0": {
- "Zend\\": "library/",
- "ZendTest\\": "tests/"
+ "Zend\\": "library/"
}
},
"bin": [
View
@@ -3,17 +3,13 @@
* Setup autoloading
*/
-if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
- include_once __DIR__ . '/../vendor/autoload.php';
@weierophinney
weierophinney Jun 28, 2013 Member

We'll still need to pull in the Composer autoloader for things like doctrine/annotations, the proxymanager, etc. The primary point is that in addition to this, we also need to use the StandardAutoloader to autoload the test classes.

-} 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();