Zend 1.12&;PHPUnit某些文件未加载
我正在尝试在ZF1.12上使用PHPUnit(3.7)测试我的服务 当我测试调用DAO的服务时,找不到DAO。 我尝试了很多东西,但总是出错: Bootstrap.phpZend 1.12&;PHPUnit某些文件未加载,php,zend-framework,phpunit,Php,Zend Framework,Phpunit,我正在尝试在ZF1.12上使用PHPUnit(3.7)测试我的服务 当我测试调用DAO的服务时,找不到DAO。 我尝试了很多东西,但总是出错: Bootstrap.php define('TESTS_PATH', realpath(dirname(__FILE__))); define('APPLICATION_LIBRARY_PATH', TESTS_PATH . '/../../php-deps'); define('APPLICATION_PATH', TESTS_PATH . '/../
define('TESTS_PATH', realpath(dirname(__FILE__)));
define('APPLICATION_LIBRARY_PATH', TESTS_PATH . '/../../php-deps');
define('APPLICATION_PATH', TESTS_PATH . '/../application');
define('LIBRARY_PATH', APPLICATION_PATH . '/../library');
define('APPLICATION_ENV', 'testing');
$_SERVER['SERVER_NAME'] = 'http://link.local';
$includePaths = array( APPLICATION_PATH,
LIBRARY_PATH,
APPLICATION_LIBRARY_PATH,
TESTS_PATH,
get_include_path(),
);
set_include_path(implode(PATH_SEPARATOR, $includePaths));
require_once 'Zend/Loader/Autoloader.php';
require_once 'model/Service/Abstract.php';
Zend_Loader_Autoloader::getInstance()->registerNamespace('Application');
Zend_Session::$_unitTestEnabled = true;
Zend_Session::start();
我的文件
├───model
│ ├───Common
│ ├───Dao
│ ├───Entity
│ │ ├───Abstract
│ │ └───Interface
│ └───Service
│ ├───Administration
│ ├───Dev
│ ├───Exception
├───test
│ └───application
│ ├───library
│ │ └───Classes
│ └───model
│ └───Service
│ ├───Administration
│ ├───Collaborators
│ ├───Mission
│ └───Planning
欢迎任何意见 您在Dao中的类中放置了什么名称空间和类名?还有,其他类(模型/实体)加载是否正常?我的应用程序中没有任何名称空间。服务正在加载。我的实体也没有加载。