bfolliot / zf-atoum
此包已被废弃且不再维护。未建议替代包。
Atoum 单元测试框架的 Zend Framework 2 模块
dev-master
2014-03-25 14:58 UTC
Requires
- php: >=5.3.3
- atoum/atoum: *
- zendframework/zend-mvc: >=2.2.5
This package is not auto-updated.
Last update: 2020-09-18 18:40:51 UTC
README
Atoum 单元测试框架的 Zend Framework 2 模块
目前,我们可以在 ./module 中运行所有模块的测试
安装
1 - 使用 Composer
{ "require": { "bfolliot/zf-atoum": "dev-master" } }
在大多数情况下,您不需要在您的生产环境中使用 ZfAtoum。
{ "require-dev": { "bfolliot/zf-atoum": "dev-master" } }
2 - 命令
ZfAtoum 提供了 Zend Framework 控制台路由。
2-a 在您的应用程序中注册
在您的 application.config.php 文件中启用它。
<?php return array( 'modules' => array( // ... 'ZfAtoum', ), // ... );
2-c 命令行使用
然后您可以使用
$ php ./public/index.php atoum # launch tests for your module (in ./module)