【发布时间】:2013-04-20 12:38:00
【问题描述】:
我只是在用 Zend Framework 做一些示例。正如官方教程所说,我创建了一个相册模块。它运作良好。 现在我想在这个模块中添加 Unti 测试。 我正在使用本指南:http://framework.zend.com/manual/2.1/en/tutorials/unittesting.html 但是在“失败的测试用例”一章中,我遇到了不同的错误。
C:\wamp\www\zf2-tutorial\module\Album\test>phpunit PHPUnit 3.7.19 by 塞巴斯蒂安·伯格曼。
配置读取自 C:\wamp\www\zf2-tutorial\module\Album\test\phpunit.xml
←[31;1mE←[0m
时间:0 秒,内存:8.75Mb
有 1 个错误:
1) AlbumTest\Controller\AlbumControllerTest::testIndexActionCanBeAccessed 包括(/var/www/zf2-tutorial/config/application.config.php):失败 打开流:没有这样的文件或目录
C:\wamp\www\zf2-tutorial\module\Album\test\AlbumTest\Controller\IndexControllerT est.php:14 C:\wamp\www\zf2-tutorial\module\Album\test\AlbumTest\Controller\IndexControllerT est.php:14
←[37;41m←[2K失败! ←[0m←[37;41m←[2KTests:1,断言:0,错误: 1. ←[0m←[2K
这可能是什么问题?我正在寻找解决方案,但还可以找到任何解决此问题的方法。
(对不起我的英语)
【问题讨论】: