Skip to content

Removing the tests for PHP 7.0 #12277

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

Merged
merged 1 commit into from
Sep 10, 2019
Merged

Removing the tests for PHP 7.0 #12277

merged 1 commit into from
Sep 10, 2019

Conversation

Kynno
Copy link
Contributor

@Kynno Kynno commented Sep 5, 2019

As Symfony 4 requires minimum PHP 7.1, some builds testing PHP 7.0 will automatically fail.

Also, I want to mention that the builds line 199 and 201 are not running because of the following error:

PHP Warning:  fopen(https://github.com/sebastianbergmann/phpunit/archive/6.3.zip): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found

If I remember well, some months ago PHPUnit removed all old available version and I guess that's what's causing the error

@javiereguiluz
Copy link
Member

@Kynno good catch! Thanks for improving this. About the PHPUnit, yes you are right. I'm not sure which is the official Symfony recommendation to avoid this issue. Maybe @nicolas-grekas can help us here. Thanks!

@nicolas-grekas
Copy link
Member

the build issue has been fixed weeks ago, but you need a recent enough phpunit bridge of course

@Kynno
Copy link
Contributor Author

Kynno commented Sep 5, 2019

You're right. So what I did to fix this issue with PHPUnit is:

  • "symfony/phpunit-bridge": "^4.1"
  • Set this in the file phpunit.xml.dist
<php>
    <env name="SYMFONY_PHPUNIT_VERSION" value="7.5" />
</php>

I'm not sure we need to mention this as in this case it was related to my own settings in my composer.json

@javiereguiluz
Copy link
Member

@Kynno thanks for improving this. We've merged so the pull request doesn't get stalled ... but we can do further improvements to this file in future pull requests. Thanks!

javiereguiluz added a commit that referenced this pull request Sep 10, 2019
This PR was merged into the 4.3 branch.

Discussion
----------

Removing the tests for PHP 7.0

As Symfony 4 requires minimum PHP 7.1, some builds testing PHP 7.0 will automatically fail.

Also, I want to mention that the builds line 199 and 201 are not running because of the following error:
```
PHP Warning:  fopen(https://github.com/sebastianbergmann/phpunit/archive/6.3.zip): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
```
If I remember well, some months ago PHPUnit removed all old available version and I guess that's what's causing the error

Commits
-------

d85f6c4 Removing the tests for PHP 7.0
@javiereguiluz javiereguiluz merged commit d85f6c4 into symfony:4.3 Sep 10, 2019
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.

4 participants