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
I tried hard to debug this one (many times), but I have really no idea why I get it... Tried many versions of phpspec (from 6 to last). I can't stop thinking the issue is something stupid I missed, but well, I quadruple-checked everything... So here is my issue, and sorry in advance if it's stupid.
Do you have any idea why I have this issue? (I have this issue with some other interfaces/classes, but it seems connected to dependencies... I have no issues with classes living in the src folder)
PHP Version:
PHP 8.0.8 (cli) (built: Mar 3 2022 14:51:53) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.8, Copyright (c) Zend Technologies
with Zend OPcache v8.0.8, Copyright (c), by Zend Technologies
The text was updated successfully, but these errors were encountered:
Nek-
changed the title
PHPSpec does not find the right class
PHPSpec does not find the right FQCN in some cases
Apr 13, 2022
Nek-
changed the title
PHPSpec does not find the right FQCN in some cases
PHPSpec does not find the right FQCN in some cases to generate doubles
Apr 13, 2022
debugging the collaborator generation, and especially how the argument fqcn is resolved, would bring light to the root of the issue. I can give a hand with that, if the issue is still confirmed nowadays.
you should not mock what you don't own (that point is opinionated, and would mean choosing a different testing strategy for "testing controller")
I tried hard to debug this one (many times), but I have really no idea why I get it... Tried many versions of phpspec (from 6 to last). I can't stop thinking the issue is something stupid I missed, but well, I quadruple-checked everything... So here is my issue, and sorry in advance if it's stupid.
Consider the following spec:
I end up with the following error, and I have no idea why:
I have a fix for it, but this code should works!
Changing the let method to this fixes the problem:
Do you have any idea why I have this issue? (I have this issue with some other interfaces/classes, but it seems connected to dependencies... I have no issues with classes living in the src folder)
PHP Version:
The text was updated successfully, but these errors were encountered: