-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
[Tests] Polyfills not loaded #425
Comments
That's how it's supposed to work to me: the internal function (the native one, non-polyfilled) is not found since you're on PHP 8.1 |
That doesn't make much sense to me. From what I remember, we were including |
OK, I think I got it now - I always thought we run the future-compatible tests on old versions too, and that the functions are globally registered but now I see the mechanism is much more sophisticated. I just wonder if that won't produce any regressions, as we test |
Aren't we testing the polyfill variant on all PHP versions ? |
FTR this works with PHPUnit 7.5 (and PHP 7.4) SYMFONY_PHPUNIT_VERSION=7.5 ./vendor/bin/simple-phpunit We'd need to figure out what changed in PHPUnit 8+ |
When running the test suite on my local environment (PHP 8.1), the polyfill is not loaded correctly, causing the new functions to be not registered. Interestingly, the test is marked as skipped, instead of error/warning 🤔
I bet it has something to do with the custom test runner/hooks but not sure what's wrong there.
The text was updated successfully, but these errors were encountered: