-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Exit code changed since 5.7.7 #2446
Comments
Same problem in our build chain, downgraded to 5.7.6 this morning... |
Same thing, seems critical. |
The only change in PHPUnit 5.7.7 that I can think of that would be causing this is #2349 / f4cf4d1. I believe that exiting with a return code that signals "not successful" is the right thing to do when there are warnings. I will revert PHPUnit 5.7 to not signal "not successful" when there are warnings. But I will leave this change in PHPUnit 6.0. |
I can reproduce this issue: <?php
class Test extends PHPUnit_Framework_TestCase
{
public function testOne()
{
throw new PHPUnit_Framework_Warning;
}
} PHPUnit 5.7.6
PHPUnit 5.7.7
|
All the builds in our org projects are failing because we keep using
getMock()
until we drop phpunit 4, but run them with phpunit 5. Not very clever, I know, but since yesterday, the previously harmless warnings triggered bygetMock()
make the build fail because it seems the exit code is no longer 0. This looks like a BC-break, are you going to revert it or is it deliberate?The text was updated successfully, but these errors were encountered: