Skip to content
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

Added PHPUnit 6.5 to Travis CI config #20

Closed
wants to merge 8 commits into from

Conversation

michalbundyra
Copy link
Member

PR based on #19, to see if all works: PHP 7.2 and PHPUnit 6.5

@OndraM
Copy link

OndraM commented Dec 1, 2017

Look like the 6.5 is actually broken - I just coincidentally also reported #21 .

@michalbundyra
Copy link
Member Author

@OndraM Please have a look on my changes, all now works with PHPUnit 6.5 on all PHP versions :)
I hope it will be merged and released soon!

@michalbundyra
Copy link
Member Author

Ping @malkusch

@malkusch
Copy link
Member

malkusch commented Dec 2, 2017

Thank you for your effort. But I won't go for this solution. I consider PHPUnit-6.5 did a BC breaking change. As a hot fix for the currently broken release I simply drop support for PHPUnit-6.5.

@malkusch malkusch closed this Dec 2, 2017
{
MockFunctionGenerator::removeDefaultArguments($invocation->parameters);
$r = new \ReflectionObject($invocation);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's nice as a work around but not sustainable. Relying on implementation details can break at any upstream patch release. I try to get a public interface for that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was the only possible solution in current situation. If the public interface change then we can improve this part.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know. I just wanted to give you some context why I closed this PR so that you won't get frustrated.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's your library, you can do whatever you want ! :)

I would consider release v2.1 with support PHPUnit 6.5+ only and everyone will be happy 😄
Of course, still there will be the same issue, and only reflection will be the way to that...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would consider release v2.1 with support PHPUnit 6.5+ only

Ah that's still a little fuck up. Unfortunaltey I have to make a further 2.0 release which supports 6.5 otherwise 2.0 is broken.

@michalbundyra michalbundyra deleted the phpunit-6.5 branch June 7, 2019 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants