Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cacheDir cannot be omitted #181

Open
alekseykuleshov opened this issue Apr 24, 2020 · 1 comment
Open

cacheDir cannot be omitted #181

alekseykuleshov opened this issue Apr 24, 2020 · 1 comment

Comments

@alekseykuleshov
Copy link

alekseykuleshov commented Apr 24, 2020

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.

@alekseykuleshov alekseykuleshov changed the title cacheDir cannot be skipped cacheDir cannot be omitted Apr 24, 2020
@foxbit19
Copy link

Same problem here.

I've added the folder aopcache to my project and set the init as follow:

$kernel->init([
    'debug' => true,
    'includePaths' => [__DIR__ . '/../application'],
    'cacheDir'     => __DIR__ . '/../aopcache', // Cache directory
]);

I agree with @alekseykuleshov. I think the documentation should be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants