-
-
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
TypeError: PHPUnit\Framework\TestSuiteIterator::current(): Return value must be of type PHPUnit\Framework\Test, null returned #5866
Comments
v10.5.21 fails, reported here sebastianbergmann/phpunit#5866
v10.5.21 fails, reported here sebastianbergmann/phpunit#5866
Similar breakage with the latest phpunit release
Maybe it's not a coincidence that webonyx/graphql-php is involved, too? I'm seeing similar errors over at https://github.com/rebing/graphql-laravel when I run composer update and run the test suite. |
Is #5866 a regression of this? We had to lock phpunit to |
Thank you for your report. Please provide a minimal, self-contained, reproducing test case that shows the problem you are reporting. Without such a minimal, self-contained, reproducing test case I will not be able to investigate this issue. |
Sorry meant: possible regression of #5861 ?
Because the error is triggered in |
Yes, #5861 would be the only change in PHPUnit 10.5.21 that could explain this. |
I just noticed also a difference:
Luckily, I can reproduce it when I provide a custom |
If that that is indeed the root cause here then I will close this as "won't fix". An error handler that is not PHPUnit's must not mess with exceptions raised by PHPUnit that indicate test failure. |
Hmm, but how is |
That is besides the point: the |
Then maybe the |
@mfn you've indeed found the issue, it is not directly related to phpunit. phpunit/src/Framework/TestSuite.php Lines 265 to 274 in 1d08c52
phpunit/src/Framework/TestSuite.php Lines 416 to 424 in 1d08c52
|
Summary
v10.5.20 works fine. With 10.5.21 getting the error when I run the whole test suite.
https://github.com/webonyx/graphql-php/actions/runs/9533107528/job/26275958530
Current behavior
How to reproduce
checkout webonyx/graphql-php@21bc031
composer install
vendor/bin/phpunit
Expected behavior
No error.
The text was updated successfully, but these errors were encountered: