Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests on PHP 8.3 and update test suite #38

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from

Conversation

yadaiio
Copy link

@yadaiio yadaiio commented Apr 23, 2024

Builds on top of #30, #35, #36 and #37.

References: reactphp/socket#300, clue/reactphp-zenity#63, clue/reactphp-csv#33 and others.

After this is merged, I also want to create another pull request that fix the typos, improve the documentation. 馃憤

Copy link
Collaborator

@SimonFrings SimonFrings left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far, I have two suggestions that are currently missing from this PR:

  1. Can you also update the comment inside the phpunit.xml.legacy, similar to my changes in ReactPHP CSV
  2. We also use these PRs to improve the indentation inside the composer.json, similar to my changes in ReactPHP CSV

@SimonFrings
Copy link
Collaborator

It also seems like the tests for HHVM are currently failing, didn't notice while reviewing. Can you look into this?

@yadaiio
Copy link
Author

yadaiio commented Apr 26, 2024

Looks good so far, I have two suggestions that are currently missing from this PR:

1. Can you also update the comment inside the `phpunit.xml.legacy`, similar to [my changes in ReactPHP CSV](https://github.com/clue/reactphp-csv/pull/33/files#diff-90e8ed4d404ab38c64ae8ee57d9df2b954891d9d57054048a77df0a385f3a612L3-R3)

2. We also use these PRs to improve the indentation inside the `composer.json`, similar to [my changes in ReactPHP CSV](https://github.com/clue/reactphp-csv/pull/33/files#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34L23-R30)

Done! Thank you @SimonFrings 馃憤

@yadaiio
Copy link
Author

yadaiio commented Apr 26, 2024

It also seems like the tests for HHVM are currently failing, didn't notice while reviewing. Can you look into this?

It seems like we give an array in the React/Promise(any) function but HHVM expects an React\Promise\Iterable which doesn't exist. I decided to skip the tests for HHVM as the error message doesn't make much sense and HHVM is outdated anyway. Normally an array is the alias for iterable, see https://www.php.net/manual/en/language.types.iterable.php, so the thrown error message is invalid in my opinion.

Tests are running green now. 馃憤

errror

Copy link
Collaborator

@SimonFrings SimonFrings left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for applying the suggested changes, PR looks good to me 馃憤

composer.json Outdated Show resolved Hide resolved
@yadaiio yadaiio force-pushed the test_suite branch 4 times, most recently from fe72147 to 5b3960e Compare April 30, 2024 07:15
@@ -24,6 +28,16 @@
"react/socket": "^1.12"
},
"require-dev": {
"phpunit/phpunit": "^9.3 || ^5.7 || ^4.8"
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36"
},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
},
},

@clue clue requested a review from SimonFrings May 1, 2024 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants