atreo / codeception
Nette 框架中对 Codeception 的实现。
1.0.10
2016-07-13 12:16 UTC
Requires
- php: >=5.6
- codeception/codeception: ~2.2
- nette/bootstrap: ~2.3
- nette/di: ~2.3
- nette/http: ~2.3
README
安装
$ composer require atreo/codeception
扩展配置
codeception: Atreo\Codeception\Di\CodeceptionExtension
像示例中一样更新您的 bootstrap.php。可能只需要添加
$configurator->addParameters([
'appDir' => __DIR__,
'wwwDir' => __DIR__ . '/../www'
]);
然后将示例中的 codeception.yml 和测试文件夹复制到您的项目根目录。
现在您可以运行 codeception 了
$ php vendor/bin/codecept run
如果您正在使用 kdyby/events,您可能需要更新 composer.json
"require": {
"kdyby/events": "@dev" },
"repositories": [
{ "type": "git", "url": "https://github.com/AtreoCZ/Events.git" }
]