Skip to content

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

@calebdw

Description

@calebdw

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions