Codeception / Codeception/AspectMock

cacheDir cannot be omitted

Offen
#181 1 Kommentar 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
PHP
Sterne
784
Forks
132
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.