Codeception / Codeception/AspectMock

cacheDir cannot be omitted

未关闭
#181 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
784
派生
132
PR 合并指标
30 天内没有已合并 PR

描述

It's stated in documentation that `cacheDir` setting can be skipped: https://github.com/Codeception/AspectMock/blob/master/README.md

------
* `cacheDir` a dir where updated source PHP files can be stored. If this directory is not set, proxie classes will be built on each run. Otherwise all PHP files used in tests will be updated with aspect injections and stored into `cacheDir` path.
------

Although when I don't specify it, I getting the error running the tests:

```
Fatal error: Uncaught RuntimeException: You need to provide valid cache directory for Go! AOP framework.
```

What do I do wrong? Or if it's really required and cannot be omitted, the documentation should be updated.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start with the cacheDir section in README.md and reproduce the reported failure while running the tests without that setting. Compare the documented optional behavior with the configuration path that produces the Go! AOP cache-directory error; done means the behavior and documentation agree about whether cacheDir may be omitted.

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
testing
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
32/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。