Cache not cleared when includePaths updated
まだ誰も着手していません。
評価
調査の方向性
まず、AspectMock のキャッシュ処理と、キャッシュされたファイルのチェック時または再処理時に使用される includePaths 設定を追跡します。再現手順を検証し、includePaths を変更すると、キャッシュを手動で削除しなくても、影響を受けるファイルが再度処理されてモック化されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Bug
When you add a file to be mocked to the includePaths config the cache isn't updated and you can't mock that class until you manually delete the cache.
Reproduction
- set up your includePaths to not include file
A.php - run a test using AspectMock that utilizes
A.phpso it's pulled into the cache - now add
A.phpto yourincludePathsconfig - modify your test so you mock something inside
A.php - re-run your test.
A.phpwon't be mocked because the cache doesn't get refreshed
Resolution
A copy of includePaths should be included in the cache. When checking if a file should be read from cache or re-processed, we should also check if that file has been added to includePaths since the cache was last written
- 主要言語
- PHP
- スター
- 784
- フォーク
- 132
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Codeception/AspectMock のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
Codeception/AspectMock#208 · コメント 2 件 · リアクション 5 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
Codeception/AspectMock#206 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Codeception/AspectMock#203 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
Codeception/AspectMock#202 · コメント 5 件 · リアクション 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
Codeception/AspectMock#201 · コメント 1 件 ·
Codeception/AspectMock の issue をすべて見る
似ている issue
-
Solved site promotion gate fails on runner PHP patch drift (expects 8.2.33, runner installs 8.2.34) オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Automattic/blocks-engine#2161 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Automattic/static-site-importer#1824 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
0. Needs triage 35-feedback bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100