Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[PhpUnitBridge] Added ClassExistsMock#28931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas commentedOct 20, 2018
Mocks don't work with root-namespaced functions, and it turns out that |
ro0NL commentedOct 20, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
ouch :( i didnt saw any root namespaced variant in code base. Also CS does not propose these functions (yet) right? |
nicolas-grekas commentedOct 20, 2018
Actually I was wrong sorry, |
Uh oh!
There was an error while loading.Please reload this page.
javiereguiluz commentedNov 7, 2018
@ro0NL thanks for creatingsymfony/symfony-docs#10528 to track this feature in Symfony Docs. Much appreciated! Sadly, the docs issue is not very actionable because the description of this PR is a bit lacking. Please update it to explain which changes would this require for full Symfony apps and for apps that use this as a stand-alone component. If no changes are needed, please add some before/after examples or show what can we do now that wasn't possible before. Thanks! |
Uh oh!
There was an error while loading.Please reload this page.
ro0NL commentedDec 1, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
should there be any annotation integration, ie. |
nicolas-grekas commentedDec 1, 2018
I'm not sure - not if we don't have a use case. |
ro0NL commentedDec 1, 2018
#28898 could have one more test using |
fabpot commentedDec 10, 2018
Thank you@ro0NL. |
This PR was squashed before being merged into the 4.3-dev branch (closes#28931).Discussion----------[PhpUnitBridge] Added ClassExistsMock| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR |symfony/symfony-docs#10528I've thought about this before, and bumped into it again when trying to test#28898This PR allows to mock `class|interface|trait_exists` to enable specific code path testingCommits-------62caec1 [PhpUnitBridge] Added ClassExistsMock
Uh oh!
There was an error while loading.Please reload this page.
I've thought about this before, and bumped into it again when trying to test#28898
This PR allows to mock
class|interface|trait_existsto enable specific code path testing