GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — Assertion class as parameter for Codeception config by Slamdunk · Pull Request #65 · phpstan/phpstan-phpunit ConversationResolves #34
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Slamdunk
commented
|
|
Hi, I don't know anything about Codeception. Do you typically use Anyway, we could register everything by default (there's no downside) and just mention in the README that this extension works well with Codeception out of the box. WDYT? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It was my wish from the beginning, but it not feasible. Codeception ships with 2 different types of test, the Unit one which is a subclass of What's the blocking? The giant class created lies under the project folder tree, and of course to be correctly autoloaded it must have the project's namespace, not a generic one. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I feel like this is related to #103 I don't exactly see the benefit to parametrize the assertion class instead of just fixing the FQCN. But I'm not familiar at all with codeception. Can you provide a link to that I tried searching https://github.com/Codeception/phpunit-wrapper/tree/9.0/src but I didn't find it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I doesn't exist, Codeception doesn't work this way. There is no way |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The thing is making the class parametrizable will fix your use case by breaking PHP Unit analysis. I think a better approach would be to create another package dedicated to codeception, dependant on this one. This way you can have two instance of the extension working at the same time. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
May I ask you how this break would happen?
This PR already enable to have both PHPUnit and Codeception working in the same time, where do you see this isn't the case? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤦 You are right I didn't understand the PR correctly. I somehow thought you were just feeding the existing service with another default value. But you are in fact creating other instances with different parameters. This should work fine. 👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
assertInternalType()
There was an error while loading. Please reload this page.