Closed
Description
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.
vendor/bin/simple-phpunit --filter php83 -vvv
PHPUnit 9.5.26 by Sebastian Bergmann and contributors.
Runtime: PHP 8.1.14
Configuration: /Users/ionbazan/work/polyfill/phpunit.xml.dist
Warning: Your XML configuration validates against a deprecated schema.
Suggestion: Migrate your XML configuration using "--migrate-configuration"!
Testing
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 42 / 42 (100%)
Time: 00:00.317, Memory: 74.00 MB
There were 42 skipped tests:
1) Symfony\Polyfill\Tests\Php83\Php83Test::testJsonValidate with data set #0 (false, '', 'Syntax error')
Internal function not found: json_validate
/Users/ionbazan/work/polyfill/tests/Php83/Php83Test.php:24
2) Symfony\Polyfill\Tests\Php83\Php83Test::testJsonValidate with data set #1 (false, '.', 'Syntax error')
Internal function not found: json_validate
/Users/ionbazan/work/polyfill/tests/Php83/Php83Test.php:24
[...]
Metadata
Metadata
Assignees
Labels
No labels