Replace deprecated assertRegExp() with assertMatchesRegularExpression() #47
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's in this PR?
In #45 compatibility with phpunit 9.3 was declared
But 9.3 throws warnings now on usage of
assertRegExp()
replaced withassertMatchesRegularExpression()
in phpinit 9.1Ref https://phpunit.readthedocs.io/en/9.1/assertions.html#assertmatchesregularexpression
Why?
Testing laminas/laminas-diactoros#46 travis reports this warnings because it using php 8 (nightly) so composer resolves phpunit to 9.3
Also package tests reports the same https://travis-ci.org/github/php-http/psr7-integration-tests/jobs/738863983#L393
Checklist
To Do