Skip to content

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Oct 4, 2015

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

It's a pain to review pull requests that always fail as the build job
for PHP 7 is broken. We have to use PHPUnit 5 for this job as it is the
only version supporting PHP 7 which suffers from broken behavior in the
mock library (see sebastianbergmann/phpunit-mock-objects#259).

Therefore, I suggest to allow failures of the PHP 7 build job until
above mentioned issue has been fixed to make it easier for reviewers to
spot really broken tests.

It's a pain to review pull requests that always fail as the build job
for PHP 7 is broken. We have to use PHPUnit 5 for this job as it is the
only version supporting PHP 7 which suffers from broken behavior in the
mock library (see sebastianbergmann/phpunit-mock-objects#259).

Therefore, I suggest to allow failures of the PHP 7 build job until
above mentioned issue has been fixed to make it easier for reviewers to
spot really broken tests.
@dunglas
Copy link
Member

dunglas commented Oct 4, 2015

👍

@nicolas-grekas
Copy link
Member

Can't we fix the issue instead?

@xabbuh
Copy link
Member Author

xabbuh commented Oct 4, 2015

As far as I understand the issue this must be fixed in PHPUnit's mock library.

@nicolas-grekas
Copy link
Member

Yes, that's were I meant to fix the issue, this is oss :-)

@nicolas-grekas
Copy link
Member

As far as I tested correctly, the issue is in the 4.8 version: ./phpunit --filter testStrategiesWith2Roles#4 is green even-though vote is actually called only once...

@nicolas-grekas
Copy link
Member

So, spending a few minutes on this, I'm for now 👎 for allowing the failure and 👍 for understanding what's going on in phpunit...

@xabbuh
Copy link
Member Author

xabbuh commented Oct 5, 2015

That's an interesting observation and I agree with you then. Thanks for investigating. We can reopen here anyway if we don't succeed soon enough.

@nicolas-grekas
Copy link
Member

So: the issue comes from an unchecked assertion in phpunit 4 that has been fixed in 5.0 as part of sebastianbergmann/phpunit#1821

@xabbuh xabbuh deleted the allow-php7-failures branch October 6, 2015 07:27
nicolas-grekas added a commit that referenced this pull request Oct 6, 2015
…/phpunit#1821 (nicolas-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

[Security\Core] Fix test failure after sebastianbergmann/phpunit#1821

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #16112
| License       | MIT
| Doc PR        | -

See sebastianbergmann/phpunit#1821

Commits
-------

742547c [Security\Core] Fix test failure after sebastianbergmann/phpunit#1821
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants