-
Notifications
You must be signed in to change notification settings - Fork 201
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
[PHPUnit] migrate ./tests source from PHPUnit 3.x to PHPUnit 9.5 vs Add PHPUnit 9 to Github actions tests (test success on php 8.0, comment on php 8.1) #240
Conversation
@Shardj how do you think about this PR ? |
Upgrading PHPUnit is a slightly tricky one, might be time to bite the bullet on that though. What an immense PR @kaktusas2598 thoughts? |
+1, as tests are not working at all now. |
@develart-projects not sure what you mean, which bit is broken for you? |
Run failed on PHP 8.1 |
@develart-projects are you talking about your own tests or zf1-future's tests? What error are you getting? |
I think we should merge this. phpunit 9 has a minimum requirement for php 7.3
So still some work to do, but at least we have something usable and future proof |
I am currently testing this on our own platform, will come back with the results. |
kaktusas2598 any update on this? |
@Jimbolino I ran the builds on our private servers and they are passing for us, but I can't guarantee this will work for everyone though, do you have any resources available to this for yourself as well? I think I will probably merge this anyway, agreed @Shardj ? |
@kaktusas2598 go for it |
PHP8 - related problems are gone, getting this now:
|
@develart-projects It's about to autoload problem, so please set phpunit binary path on netbean point to path_to_zf1_future/bin/phpunit or point to PHPUnit 9.5.21.phar downloaded on your computer So result look like that "/usr/bin/php8.0" "/home/trinhhung/Projects/zf1-future/bin/phpunit" "--colors" "--log-junit" "/tmp/nb-phpunit-log.xml" "--configuration" "/home/trinhhung/Projects/zf1-future/tests/phpunit.xml" "/home/trinhhung/Projects/zf1-future/tests/AllTests.php"
PHPUnit 9.5.21 #StandWithUkraine
.S.SSSSSSS................................................... 61 / 9281 ( 0%)
............................................................. 122 / 9281 ( 1%)
................S............................................ 183 / 9281 ( 1%)
.......................................................S..... 244 / 9281 ( 2%) But i think this way it's better cd path_to_zf1_future
./bin/phpunit -c tests/phpunit.xml tests/Zend/AllTests.php |
Finally got it running, thanks: Now I need to strip deprecation messages :) ..writing that down here, so if anyone run into same troubles, google will help. |
Work done
Testing
What next