Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@SimonFrings
Copy link
Contributor

@SimonFrings SimonFrings commented Mar 30, 2021

Bye bye Travis CI, you've served us well.

I've built a little workaround for some tests for legacy PHP. When using recursion there is always the risk of reaching a full stack which results in PHP failing hard. Therefore the max_nesting_level setting from Xdebug (to prevent reaching this point) was set to 100 for PHP Versions < 5.4 which resulted in failing test for legacy PHP. In 2015 this setting was changed to 256 for PHP Versions > 5.4. For more details look into Xdebug#1100

This code supports running tests on PHP 8.

$ docker run -it --rm -v `pwd`:/data --workdir=/data php:8.0.0 php vendor/bin/phpunit
PHPUnit 9.5.4 by Sebastian Bergmann and contributors.

...............................................................  63 / 118 ( 53%)
.......................................................         118 / 118 (100%)

Time: 00:03.362, Memory: 10.00 MB

OK (118 tests, 328 assertions)

Builds on top of #96 reactphp/reactphp#442.

Bye bye Travis CI, you've served us well
Copy link
Owner

@clue clue left a comment

Choose a reason for hiding this comment

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

@SimonFrings Thanks for the update, changes LGTM! :shipit:

@clue clue added this to the v1.3.0 milestone Mar 31, 2021
@clue clue merged commit 5cc99a1 into clue:master Mar 31, 2021
@clue clue mentioned this pull request Feb 8, 2022
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.

2 participants