Comments (8)
@theofidry Before I dig into this, is there anything that would be obvious to you that might explain this? Thanks!
from phpunit.
Maybe this from the release https://github.com/humbug/php-scoper/releases/tag/0.18.12
Upgrade to PHP-Parser v5 (humbug/php-scoper#1025)
https://github.com/nikic/PHP-Parser?tab=readme-ov-file#php-parser says:
Documentation for version 5.x (current; for running on PHP >= 7.4; for parsing PHP 7.0 to PHP 8.3, with limited support for parsing PHP 5.x).
So you can't run this on PHP < 7.4 I guess? 🤔
from phpunit.
@mfn PHP-Scoper requires a newer version of PHP, yes. But that does not have to mean that the modified code no longer works with PHP 7.2.
from phpunit.
Aside from the PHP-Parser upgrade I don't see anything that could cause this :/ Do you have the offending code by any chance? I can take a look at it
from phpunit.
$ git clone [email protected]:sebastianbergmann/phpunit.git
$ cd phpunit
$ git checkout 8.5
$ ant phar-snapshot
$ php-72 build/artifacts/phpunit-snapshot.phar
Parse error: syntax error in phar:///usr/local/src/phpunit/build/artifacts/phpunit-snapshot.phar/phpunit/Framework/MockObject/Generator.php on line 736
$ phar extract -f /usr/local/src/phpunit/build/artifacts/phpunit-snapshot.phar
$ php-72 -l phpunit/Framework/MockObject/Generator.php
Parse error: syntax error in phpunit/Framework/MockObject/Generator.php on line 736
Errors parsing phpunit/Framework/MockObject/Generator.php
Attached is the result of ant phar-snapshot
for the current state of the 8.5
branch.
from phpunit.
Ok I got a small reproducer within the PHP-Scoper test suite, will look more into it
from phpunit.
Related Issues (20)
- Allow attributes for code coverage targeting to also be used on the test method level (instead of only on the test class level) HOT 4
- Allow enabling process isolation on suite/test base class HOT 1
- Include deprecation/warning failures in JUnit logs
- Multiple dataProviders testCases with same key (name) are not detected HOT 1
- Allow selected deprecations to be skipped/ignored HOT 1
- Run garbage collector on AfterLastTestMethodFinished HOT 2
- Fatal with some error/exception handlers HOT 3
- Issue5592Test fails when registering an error handler in an auto_prepend_file
- assertEquals() hides contents of long strings
- Suppressed deprecations not included in baseline when ignoreSuppressionOfDeprecations is true HOT 1
- parameter names $expected, $actual don't make sense for assertLessThan() & friends
- Missing extensions in php 8.2: `ctype` and `tokenizer` HOT 2
- Various output buffer issues HOT 4
- Github template comment deprecated php.ini directive log_errors_max_len HOT 1
- Smarter defaults for the display of warnings, notices & co
- Mocked methods cannot be called from the original constructor of a partially mocked class HOT 4
- XML Configuration File Migrator does not remove `cacheDirectory` attribute from `<coverage>` element when migrating from PHPUnit 11.1 to PHPUnit 11.2 HOT 2
- Running tests with process isolation does not allow defining auto_prepend_file for child processes
- TestDox printer does not show previous exception
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpunit.