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
--fail-on-warning doesn't change status code #2246
Comments
I noticed the same problem. I've traced it to this bit of code (v5.6.3):
It seems to me that the if statement (about the |
* Moved unreachable warnings check.
I cannot reproduce this with current <?php
class Test extends PHPUnit\Framework\TestCase
{
/**
* @dataProvider invalid
*/
public function testOne()
{
}
}
|
Problem still exists |
In PHPUnit 5.7.6-51-gb9287cb (soon to be released as PHPUnit 5.7.7) the problem does not exist anymore. |
Confirm |
@sebastianbergmann it's side effect of this commit: f4cf4d1. But It returns
|
sebastianbergmann/phpunit#2246 Change-Id: I8a61ed18fcbf847f65ae0f56969e477a8760e8a9
sebastianbergmann/phpunit#2246 Change-Id: I8a61ed18fcbf847f65ae0f56969e477a8760e8a9
Yep, |
I cannot reproduce this:
|
We had a similar issue and the cause was Symfony PhpUnit Bridge ( At the time of writing, bridge is not compatible with PHPUnit 10+: symfony/symfony#49069 We had to remove the bridge and use just PHPUnit, now no issues with warnings. |
Sorry for that inaccurate statement, it actually seems to work most of the time. However, it is reproducable with an invalid test class name:
|
By design, test runner warnings are not affected by |
Okay, thanks for the explanation, makes sense. Anyway, it's kind of surprising that both our status lines look identical, but show different kinds of
This is what made me try to temporarily ignore that issue via |
The text was updated successfully, but these errors were encountered: