bypass-finals icon indicating copy to clipboard operation
bypass-finals copied to clipboard

[bug] Create cache directory if it doesn't exist

Open calebdw opened this issue 6 months ago • 0 comments

Hello!

I have this package configured via phpunit:

  <extensions>
    <bootstrap class="DG\BypassFinals\PHPUnitExtension">
      <parameter name="bypassFinal" value="true" />
      <parameter name="bypassReadOnly" value="false" />
      <parameter name="cacheDirectory" value=".cache/bypass-finals" />
    </bootstrap>
  </extensions>

.cache is a gitignored directory in the repository that just used for easy CI caching and to easily clear all the different caches

However, when executing tests I get the following error and the directory is not created:

fopen(.cache/bypass-finals/55d1b0f3b1b53d983890ea7266bd85320ab48077): Failed to open stream: No such file or director…

I would like this package to automatically create the directory if it does not exist so I don't have to add this directory to git tracking

Thanks!

calebdw avatar Aug 11 '25 14:08 calebdw