-
Notifications
You must be signed in to change notification settings - Fork 539
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 are not running #371
Comments
I found the problem and made a patch: Problempdfparser's tests were imcompatible with PHP 7.4 FixThis simply adds PHP 7.4 compatibility (but might make it incompatible with older 5.x versions (?)) and also fixes some PHPUnit 9 deprecation warnings. pdfparser-fix-for-PHP-7.4.patch.txt Feel free to use this :) |
@panique thank you for the feedback. You are right that the documentation is not in sync with the current state of the library. @smalot doesn't respond to pings lately, so we other co-maintainers can't help here unfortunately. Because the library supports PHP 5.6+ (ref) we need the PHPUnit bridge you mentioned, because it runs the appropriate PHPUnit version based on your PHP version. There must be a misunderstanding though, because tests run in PHP 7.4, for example: https://travis-ci.org/github/smalot/pdfparser/jobs/744424658
My guess is that you tried to run a PHPUnit version which is too new. Please check our travis.yml, maybe we oversaw something.
I am using a docker container with a simple PHP setup to develop on my local machine (PHP 7.3 currently). Running Thank you for the work on the patch, but I don't have the time to manually deploy it. Please use pull requests for that. Besides, I don't think this patch is required, because our tests run on PHP 7.4. |
Hi, thanks, you are right! The problem was PHPUnit |
I can approve that there is a problem when running tests with PHP 7.3+ and PHP bridge. We didn't see them in our tests because we manually set
@j0k3r is that fixable or do we have to abandon PHP 5.6 support first? |
I'm OK to ditch PHP 5.6. PHP 8 is around the corner, it's time to move forward. |
Hi Guys |
How can I help you ? |
I can life with either way (remove it OR keep it + adapt test tooling). It is related to #383 (comment) |
What is the status here? Can it be closed @panique? |
The Unit Tests of this project are not running, and the documentation seems to be outdated, so I hereby want to change that to make it smooth and easy to commit fixes with proper tests to the project :)
What's the problem:
vendor/bin/atoum
), so the documentation needs some workvendor/bin/simple-phpunit
with the errorPHP Fatal error: Declaration of Tests\Smalot\PdfParser\TestCase::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp()
. Until today I was not able to run the tests of pdfparser.Why this might be important:
Currently it's hard to commit fixes with proper tests to the project. Making the tests run out-of-the-box will encourage people to take part in the development.
Used enviroment
PHP 7.4.12
please correct me if I'm overseeing something here ;)
The text was updated successfully, but these errors were encountered: