Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[PhpUnitBridge] Add assertIsX methods in ForwardCompatTestTrait#32848

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@jderusse
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#32844
LicenseMIT
Doc PRN/A

PhpUnit 8 deprecates the methodassertInternalType in favor ofassertIsX. This PR add the polyfill methodsassertIsX in theForwardCompatTestTraitForV5. It'sq a requirement to update tests in order to be compatible with both PhpUnit 5 and 8

note: this PR split the PR#32846 to provides methods in the branchmaster in order to fix the test suite for#32846

@jderusse
Copy link
MemberAuthor

fabbot want to remove@return void which should be kept#32846 (comment)

*
* @return void
*/
publicstaticfunctionassertIsArray($actual,$message ='')
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
publicstaticfunction assertIsArray($actual,$message ='')
publicstaticfunction assertIsArray($actual,string$message ='')

should be no problem, right?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

not compatible with php 5. The bridge don't use the same version of PHP.

"require": {
"php":">=5.5.9 EVEN ON LATEST SYMFONY VERSIONS TO ALLOW USING",
"php":"THIS BRIDGE WHEN TESTING LOWEST SYMFONY VERSIONS.",
"php":">=5.5.9"
},

OskarStark reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

@jderusse
Copy link
MemberAuthor

closing this PR as#32846 (already merged) contains the code

@nicolas-grekasnicolas-grekas added this to the5.0 milestoneAug 1, 2019
@jderussejderusse deleted the compat-phpunit9-assertInternalType branchAugust 2, 2019 12:14
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark left review comments

Assignees

No one assigned

Projects

None yet

Milestone

5.0

Development

Successfully merging this pull request may close these issues.

4 participants

@jderusse@OskarStark@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp