You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.php so it's pulled into the cache
now add A.php to your includePaths config
modify your test so you mock something inside A.php
re-run your test. A.php won'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
The text was updated successfully, but these errors were encountered:
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
A.php
A.php
so it's pulled into the cacheA.php
to yourincludePaths
configA.php
A.php
won't be mocked because the cache doesn't get refreshedResolution
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 toincludePaths
since the cache was last writtenThe text was updated successfully, but these errors were encountered: