You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a weird issue when creating a package with it, related to Github Actions.
Locally, my test would pass without issue. But in actions, two setups would fail:
PHP 8.3, Laravel 12, prefer lowest
PHP 8.4, Laravel 12, prefer lowest
All my tests would fail with a PHPUnit error: Test code or tested code removed error handlers other than its own.
This is related to this weird issue.
I tried everything suggested in the Github issue, but nothing worked.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for this great template.
I encountered a weird issue when creating a package with it, related to Github Actions.
Locally, my test would pass without issue. But in actions, two setups would fail:
All my tests would fail with a PHPUnit error:
Test code or tested code removed error handlers other than its own.This is related to this weird issue.
I tried everything suggested in the Github issue, but nothing worked.
You can see an example of the output here.
It took me a while to analyse the differences in failing and successful actions:
Turns out the difference lies in the Laravel version (installed by the Testbench package) and the Testbench version.
What finally made my tests pass was to change the testbench version requirement in my
run-tests.ymlmatrix (from10.*to10.6.*):Not sure what's the best way to fix this, but just adding this here in case it can help someone.
Beta Was this translation helpful? Give feedback.
All reactions