Skip to content

Build/Travis: test builds against PHP 7.3#764

Merged
wimg merged 1 commit intomasterfrom
feature/test-against-php-7.3
Dec 13, 2018
Merged

Build/Travis: test builds against PHP 7.3#764
wimg merged 1 commit intomasterfrom
feature/test-against-php-7.3

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 9, 2018

Once PHP 7.3-beta came out, the nightly build on Travis became PHP 7.4-dev and the builds haven't been tested against PHP 7.3 for months now.

Luckily, Travis has, in the mean time, deemed it appropriate to set up a PHP 7.3 alias now RC3 is out, so I've added PHP 7.3 to the matrix.

Important note:
PHP 7.3+ is only fully supported in combination with PHPCS 2.9.2 and 3.3.1+.
When running PHPCompatibility against PHPCS < 2.9.2 or PHPCS 3.x < 3.3.1, PHP warnings about using continue within switch will be thrown, but will in most cases not affect the functioning of the sniffs.

While on PHPCS 2.x, the tests won't fail, on PHPCS 3.x < 3.3.1, they will, as the error handling during PHPCS runs has changed in PHPCS 3.x.
In other words, for PHP 7.3, we can safely run the unit tests on PHPCS 2.x and PHPCS >= 3.3.1, but PHPCS 3.0 - 3.3.0 can not be tested.
See: https://travis-ci.org/jrfnl/PHPCompatibility/builds/465553352

Includes updating the README with a note about PHP 7.3 support.

N.B.: It would have been nice to move the coverage builds onto 7.3 at this time as that should raise the coverage a little as the PHP 7.3 specific code in the NewFlexibleHeredocNowdoc sniff should then show as covered.
However, that is not yet possible at this time as there is no code coverage driver available for PHP 7.3 in the PHPUnit version included on the PHP 7.3 Travis images at this time.
See https://travis-ci.org/jrfnl/PHPCompatibility/jobs/465544658#L808

This PR supersedes the earlier PR regarding this #754

Once PHP 7.3-beta came out, the `nightly` build on Travis became PHP 7.4-dev and the builds haven't been tested against PHP 7.3 for months now.

Luckily, Travis has, in the mean time, deemed it appropriate to set up a PHP 7.3 alias now RC3 is out, so I've added PHP 7.3 to the matrix.

**Important note**:
PHP 7.3+ is only fully supported in combination with PHPCS 2.9.2 and 3.3.1+.
When running PHPCompatibility against PHPCS < 2.9.2 or PHPCS 3.x < 3.3.1, PHP warnings about using `continue` within `switch` will be thrown, but will in most cases not affect the functioning of the sniffs.
While on PHPCS 2.x, the tests won't fail, on PHPCS 3.x < 3.3.1, they will, as the error handling during PHPCS runs has changed in PHPCS 3.x.
In other words, for PHP 7.3, we can safely run the unit tests on PHPCS 2.x and PHPCS >= 3.3.1, but PHPCS 3.0 - 3.3.0 can not be tested.

Includes updating to `README` with a note about PHP 7.3 support.

N.B.: It would have been nice to move the coverage builds onto 7.3 at this time as that should raise the coverage a little as the PHP 7.3 specific code in the `NewFlexibleHeredocNowdoc` sniff should then show as covered.
However, that is not yet possible at this time as there is _no code coverage driver available_ for PHP 7.3 in the PHPUnit version included on the PHP 7.3 Travis images at this time.
See https://travis-ci.org/jrfnl/PHPCompatibility/jobs/465544658#L808
@jrfnl jrfnl added Type: chores/QA PR: quick merge PR only contains relatively simple changes PR: ready for review labels Dec 9, 2018
@jrfnl jrfnl added this to the 9.x Next milestone Dec 9, 2018
@jrfnl jrfnl requested a review from wimg December 9, 2018 11:16
@wimg wimg merged commit 6def953 into master Dec 13, 2018
@wimg wimg deleted the feature/test-against-php-7.3 branch December 13, 2018 19:34
@jrfnl jrfnl removed the PR: quick merge PR only contains relatively simple changes label Sep 5, 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.

2 participants