reactphp-connection-manager-extra icon indicating copy to clipboard operation
reactphp-connection-manager-extra copied to clipboard

Run tests on PHP 8.3 and update test suite

Open yadaiio opened this issue 1 year ago • 3 comments

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

References: https://github.com/reactphp/socket/pull/300, https://github.com/clue/reactphp-zenity/pull/63, https://github.com/clue/reactphp-csv/pull/33 and others.

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

yadaiio avatar Apr 23 '24 14:04 yadaiio

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

SimonFrings avatar Apr 25 '24 06:04 SimonFrings

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 avatar Apr 26 '24 08:04 yadaiio

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

yadaiio avatar Apr 26 '24 08:04 yadaiio

As today is my last day working with you @clue, we agreed closing this pull request and revisit this later on.

If anyone is needing these changes earlier than expected, please consider sponsoring @clue via https://github.com/sponsors/clue. ❤️

yadaiio avatar Jun 28 '24 13:06 yadaiio