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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wip] Fix tests error after phpunit/phpcov new release #207
Conversation
In case it make this PR easier: as far as I'm concerned, we can drop support for phpunit 3.* (in case @brianium agrees). It's not even listen any longer on phpunit.de assuimg that the official website. |
Thanks! :) |
Would it still work with previous version of PHPCov? |
@aik099 I try make compatible, but, i do no if is possible. |
I don't agree with this change (at least for now) because now it means you cannot use paratest on older than PHPUnit 5.4.2. e.g. cannot use PHPUnit 4.8. I also had this problem and I fixed in in this PR: #208 |
With the current state of this PR, we would have to add #208 on the opposite only allows the usage of php-code-coverage < 4 ... so this sounds a little bit better. But can't we just do a version switch? I cound 4 methods (ignoring type hints) where the code would have to switch the implementation based on available classes and the evaluation, |
To clarify: #208 is merged because it is definitely better than the previous master. I would still prefer supporting both versions of phpcc. But I agree with @michaelbutler that dropping phpcc 3.x support would probably (at least currently) hit most users. It would be hard to decide when a switch to >=4.0 is possible when we don't support 3.x anymore. |
@julianseeger yes, ideally to support everything we have to do a version check and remove the typehints from the shared class -- which IMO is kind of crappy reducing to a loose interface without typehints, but a necessary evil. If PHP Code Coverage had implemented interfaces it would have actually solved this problem |
@michaelbutler You have an excellent thinking about support for all users, but I disagree with the support model. You do not need a bad code to work for both, as the support is at the end of PHP 5.5, users who need to older versions, use the version of paratest that is compatible to date, they will lose improvements resolutions and bugs but they will be able to use the old version anyway. It is a security for systems using any software upgrade their tools, mainly to avoid the version hell. |
@julianseeger I've been following the php-code-coverage of the improvements and they seem to better align namespace to correct problems that are essentially incompatible well. I have noticed in recent weeks hundreds of tools holding the version that does not break, but losing the optimized handling of phpcov, which directly affects quality metric tools. |
@webysther OK in that case I would recommend paratest update the version number to 1.x if it's going to break compatibility with older PHP or PHPUnit... that way when people say composer install it won't break as long as they had |
@michaelbutler Yes, is very important doing this. |
Ok that sounds like paratest As far as I'm informed by @brianium it is desirable to get that working xml output pre |
If I have time, I'll try to work on it this week :) |
Hey guys, any progress on this ? |
Maybe for BC reasons we don't typehint in methods for
I want preserve BC, which PHP_CodeCoverage package apparently failed to do and that caused such problem. |
I have created PR that adds support for both phpcov versions 3rd and 4th #214 |
Closing this in favor of #214 |
composer show